From prodevmg at yahoo.com Mon Nov 1 01:10:12 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sun, 31 Oct 2004 23:10:12 -0800 (PST) Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: <20041101071012.91647.qmail@web20423.mail.yahoo.com> Were you doing some ADO programming with AccessXP and moved the ADO reference above the DAO? I have seen that happen before and caused problems. Just a thought. Borge Steen Hansen wrote:Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From accessd at shaw.ca Mon Nov 1 00:33:26 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 31 Oct 2004 22:33:26 -0800 Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: Hi Borge: I am not saying this is the answer but I have never referred to the current db using set db = CurrentDb try set db = CurrentDb() or try the old method: DBEngine(0)(0) for accessing the current db. Another thing to do would be to check whether there is a reference to Microsoft Access 11.0 Object library, in addition. I am not sure whether an old Access97 applications actually works in an XP environment...It may have to be converted. I have converted applications up to Access2003 without error with not issues...once converted. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Sunday, October 31, 2004 6:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] CurrentDB Error Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Nov 1 06:57:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 07:57:10 -0500 Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: The DAO reference may be broken. Open a module in design view, click tools/references. See if it's listed as MISSING or BROKEN. If it is, most likely you'll simply need to re-register it with regsvr32.exe I none are listed missing or broken, check any reference that is not currently checked, close the MDB and Access, re-open and uncheck the reference you just checked. Then try a compile. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Sunday, October 31, 2004 9:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] CurrentDB Error Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Nov 1 08:24:25 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 1 Nov 2004 06:24:25 -0800 (PST) Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From serbach at new.rr.com Mon Nov 1 08:54:45 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 1 Nov 2004 08:54:45 -0600 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <20041101142425.31611.qmail@web61104.mail.yahoo.com> References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: <20041101085445.1988690789.serbach@new.rr.com> Sander, This sounds like what happens when the BE has moved. And, regarding Windows XP, are you running Service Pack 2? Do you have a link-checking routine running at the start of your application like Tribble's AutoLinker? I had to modify one of the procedures in that library to avoid the incredible amount of time it would take for a link to be checked that was broken. Regards, Steve Erbach Neenah, WI "I belong to no organized party. I am a Democrat." - Will Rogers > ------------Original Message------------ > From: S D > To: accessd at databaseadvisors.com > Date: Mon, Nov-1-2004 8:49 AM > Subject: [AccessD] Network issues PLEASE ADVISE > > Hi group, > > I've got a MAJOR problem. > > I've got an A2K application with a BE and a FE. FE is installed on the > local machine and the BE is installed on the server. Using WinNT > Performance has always been soso. Not fast but not very slow either. > > Now we've migrated everything to A2k2 with WinXP. > > Performance is terrible times 10!! Opening the FE takes about 20-25 > minutes. Opening a linked table takes 9 minutes same goes for tables in > the FE itself. > > However, when I open the FE and if I open a table that is stored in the > FE it opens directly, no problem. When I then open a linked table => > bang back to 9 minutes per table (linked or not) > > Is it possible that this somehow has to do with A2k2?? I know in Access > 2 (that is two!!) you had to change OPENFILES parameter thingies > somewhere. Does Access 2002 also have such a setting that must be tweaked?? > > TIA > > Sander From bheygood at abestsystems.com Mon Nov 1 09:07:13 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 1 Nov 2004 07:07:13 -0800 Subject: [AccessD] Access - Advantage - Mediwin In-Reply-To: <060101c4a7cc$4a5555d0$6401a8c0@default> Message-ID: Michael, Turns out is was just bad networking. I definitely find that the makers and distributor of these big software packages can be very tight with allowing anyone to use their data. And as a developer I can appreciate their caution. But so much can be done for a customer in a customized manner that the "big boys" can't offer for all. Thanks for responding, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Friday, October 01, 2004 8:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access - Advantage - Mediwin ----- Original Message ----- From: "Bob Heygood" To: "Access Developers discussion and problem solving" Sent: Friday, October 01, 2004 10:37 AM Subject: [AccessD] Access - Advantage - Mediwin > hello to the list, > I created an app years ago that interfaced with the client's medical > practice software. > The software is Mediwin, which uses the Advantage db engine. > After an upgrade to the Mediwin version, my ODBC calls fail for "Can't lock > all records" message from Jet. Some pursuit of the ODBC help indicates that > a network failure could also be an issue. And sure enough, they had the > network guy in about the same time. > Very odd that I can still link to the table of interest sometimes and even > export to Excel, but can't open the table in datasheet view nor successfully > run any of my code. Bob, I am working with another medical practice software called DME VI (formerly Dezine) whose creators have decided to make their own data definition files and ODBC drivers to prevent linking to their tables without paying first. I wouldn't be surprised if this has/will become a standard practice in the medical software industry. You may want to check if that's the wall you've run into. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Nov 1 09:09:07 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 1 Nov 2004 07:09:07 -0800 Subject: [AccessD] Access - Advantage - Mediwin In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677217FF76@corp-es01.fleetpride.com> Message-ID: Jim, Turns out it was just bad network settings during the upgrade. Thanks for responding. best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hale, Jim Sent: Friday, October 01, 2004 9:03 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access - Advantage - Mediwin I recall a similar problem several years with an ODBC driver that interfaced with a package that used Foxpro. When the package was updated the driver quite working. The solution was to get an updated ODBC driver. HTH Jim Hale -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Friday, October 01, 2004 9:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access - Advantage - Mediwin hello to the list, I created an app years ago that interfaced with the client's medical practice software. The software is Mediwin, which uses the Advantage db engine. After an upgrade to the Mediwin version, my ODBC calls fail for "Can't lock all records" message from Jet. Some pursuit of the ODBC help indicates that a network failure could also be an issue. And sure enough, they had the network guy in about the same time. Very odd that I can still link to the table of interest sometimes and even export to Excel, but can't open the table in datasheet view nor successfully run any of my code. Naturally, no one thought to let me know that the upgrade was happening. And I am concerned that the vendor of the Mediwin software is not being helpful because they would love to recreate most of my work themselves. And of course, the client is now 10 days behind in sending out correspondence that should have been done automatically from my program thru Word.... So, any insight/comments on ODBC, Advantage, Mediwin or a comforting word would be appreciated. best, bob accesspro at nospamcox.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 1 09:47:51 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 1 Nov 2004 07:47:51 -0800 Subject: [AccessD] Network issues PLEASE ADVISE References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: <039a01c4c02a$256df8a0$6701a8c0@HAL9002> Sander: What happens if you move the back end to a local machine, relink the tables? Does it open fast? Also, are you relinking the tables on open every time? Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "S D" To: Sent: Monday, November 01, 2004 6:24 AM Subject: [AccessD] Network issues PLEASE ADVISE > Hi group, > > I've got a MAJOR problem. > > I've got an A2K application with a BE and a FE. FE is installed on the > local machine and the BE is installed on the server. Using WinNT > Performance has always been soso. Not fast but not very slow either. > > Now we've migrated everything to A2k2 with WinXP. > > Performance is terrible times 10!! Opening the FE takes about 20-25 > minutes. Opening a linked table takes 9 minutes same goes for tables in > the FE itself. > > However, when I open the FE and if I open a table that is stored in the FE > it opens directly, no problem. When I then open a linked table => bang > back to 9 minutes per table (linked or not) > > Is it possible that this somehow has to do with A2k2?? I know in Access 2 > (that is two!!) you had to change OPENFILES parameter thingies somewhere. > Does Access 2002 also have such a setting that must be tweaked?? > > TIA > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at earthlink.net Mon Nov 1 10:00:36 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 11:00:36 -0500 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mark.breen at gmail.com Mon Nov 1 10:07:32 2004 From: mark.breen at gmail.com (Mark Breen) Date: Mon, 1 Nov 2004 16:07:32 +0000 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <039a01c4c02a$256df8a0$6701a8c0@HAL9002> References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> <039a01c4c02a$256df8a0$6701a8c0@HAL9002> Message-ID: <26a96cce0411010807180529d3@mail.gmail.com> Hello Sander, I wrote an email about this roughly a year ago to the list. This is a documented aspect of the combination of what happens when you upgrade your server to Windows 2K. It effects programmetic links to back end databases. It specifically effects the linked table connection. There were two ways that I could see to fix it, 1) was to redesign my system so that I open a seperate db and provide programmatic accesss to the tables, this would eliminate the need to linked tables, they would become local tables that happened to the located on a different server, (local to the DAO object model that is). The second way to solve it was to just import the tables back into the front end and not use a FE / BE model. I was reluctant to do this, however, when I presented the option to the client, she was happy enough to do this. That was a year ago and i have had no problems with it since. The 'feature' is clearly documented on the knowledge base and when I looked at it, MS had said that they had no intention to resolve this issue. You are welcome to see if that has changed. Best of luck with it. BTW, this issue did only effected databases with programmatic control of the linked tables. If you have a database (even a hugh one), that just connects uning linked forms etc, then you will have no problem. Best of luck with it, Mark Breen Ireland On Mon, 1 Nov 2004 07:47:51 -0800, Rocky Smolin - Beach Access Software wrote: > Sander: > > What happens if you move the back end to a local machine, relink the tables? > Does it open fast? > > Also, are you relinking the tables on open every time? > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > > > ----- Original Message ----- > From: "S D" > To: > Sent: Monday, November 01, 2004 6:24 AM > Subject: [AccessD] Network issues PLEASE ADVISE > > > Hi group, > > > > I've got a MAJOR problem. > > > > I've got an A2K application with a BE and a FE. FE is installed on the > > local machine and the BE is installed on the server. Using WinNT > > Performance has always been soso. Not fast but not very slow either. > > > > Now we've migrated everything to A2k2 with WinXP. > > > > Performance is terrible times 10!! Opening the FE takes about 20-25 > > minutes. Opening a linked table takes 9 minutes same goes for tables in > > the FE itself. > > > > However, when I open the FE and if I open a table that is stored in the FE > > it opens directly, no problem. When I then open a linked table => bang > > back to 9 minutes per table (linked or not) > > > > Is it possible that this somehow has to do with A2k2?? I know in Access 2 > > (that is two!!) you had to change OPENFILES parameter thingies somewhere. > > Does Access 2002 also have such a setting that must be tweaked?? > > > > TIA > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Address AutoComplete - You start. We finish. > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Jim.Hale at FleetPride.com Mon Nov 1 10:51:31 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 1 Nov 2004 10:51:31 -0600 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From lists at theopg.com Mon Nov 1 11:01:01 2004 From: lists at theopg.com (MarkH) Date: Mon, 1 Nov 2004 17:01:01 -0000 Subject: [AccessD] Retrieve a file types default icon for use with treeview In-Reply-To: Message-ID: <001001c4c034$5d889100$9139fc3e@netboxxp> Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From BBarabash at TappeConstruction.com Mon Nov 1 11:17:32 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 1 Nov 2004 11:17:32 -0600 Subject: [AccessD] Retrieve a file types default icon for use with treeview Message-ID: <100F91B31300334B89EC531C9DCB0865318D81@tccexch01.tappeconstruction.net> I have a VB6 sample that I downloaded from Planet Source Code. Should be easy enough to tailor to work in AccessXP: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=13803& lngWId=1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Monday, November 01, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Retrieve a file types default icon for use with treeview Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Nov 1 11:23:12 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 1 Nov 2004 18:23:12 +0100 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54AF@stekelbes.ithelps.local> There is a well known issue what concerns re-linking slowness for tables in a BE on a network server. This can be easely solved by keeping a reference open to the backend. This will speed up you linking to the backend but also opening forms, tables etc. Just keep a reference to the backend as long as the application is open. Close it when closing Access. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 01, 2004 5:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jimdettman at earthlink.net Mon Nov 1 11:35:50 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 12:35:50 -0500 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> Message-ID: Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Patricia.O'Connor at dfa.state.ny.us Mon Nov 1 11:36:01 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 1 Nov 2004 12:36:01 -0500 Subject: [AccessD] compare record fields Message-ID: I don't know whether you received an answer for this In sql you would Select field(s) >From x Where x.field1 <> x.field2 Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > pedro at plex.nl > Sent: Wednesday, October 27, 2004 08:33 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] compare record fields > > Hello Group, > > i have a table in which i would compare two fields in one > record with each other. > The result must be the record where one of the values don't > match with one another. > > fieldA fieldB and several other fields > 00123 00123 > 02345 02345 > 06789 06689 > > > result > > fieldA fieldB and several other fields > 06789 06689 > > > Is this possible. > > Thanks > > Pedro Janssen > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From lists at theopg.com Mon Nov 1 11:48:55 2004 From: lists at theopg.com (MarkH) Date: Mon, 1 Nov 2004 17:48:55 -0000 Subject: [AccessD] Retrieve a file types default icon for use with treeview In-Reply-To: <100F91B31300334B89EC531C9DCB0865318D81@tccexch01.tappeconstruction.net> Message-ID: <001701c4c03b$0e888d10$9139fc3e@netboxxp> Excellent... Thanks Brett Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: 01 November 2004 17:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Retrieve a file types default icon for use with treeview I have a VB6 sample that I downloaded from Planet Source Code. Should be easy enough to tailor to work in AccessXP: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=13803& lngWId=1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Monday, November 01, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Retrieve a file types default icon for use with treeview Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 ------------------------------------------------------------------------ -------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From handyman at actcom.co.il Mon Nov 1 11:59:44 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Mon, 01 Nov 2004 19:59:44 +0200 Subject: [AccessD] Caller ID and Access Message-ID: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Hi, I'm interested in somehow retrieving a CallerID number from my modem, and then displaying the caller's information(taken from my database) on screen. Has anyone ever done anything like this, or can point me in the right direction Thanks, Gershon Markowitz mailto:Handyman at actcom.co.il From accessd at shaw.ca Mon Nov 1 13:00:14 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 01 Nov 2004 11:00:14 -0800 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> Message-ID: Jim: Just a comment. I have heard of a number virus have been reported to be able to totally clobber Nortons Virus protection, if it can not catch the invading Virus/Trojan before it has a chance to start. Hence the reason for Norton's immediate virus scan. You can download a small program that lists all the auto-startup programs and will allow you to find and re-set them. Can also be used to catch the occasional Trojan that may have crept on to your system: http://www.cybertechhelp.com/html/downloads/download.php/id/37 HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hale, Jim Sent: Monday, November 01, 2004 8:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Mon Nov 1 13:00:11 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 11:00:11 -0800 Subject: [AccessD] Caller ID and Access References: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Message-ID: <418687BB.3060008@shaw.ca> From a few years back You will have to use TAPI, your modem need's to support caller ID Ughh, you are in Italy so you may have to check the format of caller id North America had half a dozen standards from the various Telco's in Mid 90's It was a mess. It is essentially about 55 bytes of data being sent between the first and second ring of the phone It can be more data, there are a couple of formats some included the callers name and blocking info in addition to the number. I can't remember if there is now an established ISO standard I did this back in 99. What I would do is try the trial version of Mountain Sys on your telephone system and modem It is only $15 a client, but you could roll your own code via Tapi after getting a format from your Telco but maybe they have standardized format by now in Italy. Companies that seem to handle callerid connections to Access. Mountain Systems http://www.mtnsys.com CallAudit Software has sample Access 97 & 95 database with trial software that connects thru DDE. There are a lot of others. -------------------------------------------------------------------- From Mountain System FAQ buried in there How to Test a MODEM for Caller ID Support Caveats. Necessary equipment * Caller ID Service From your local telephone company * A Voice MODEM or hardware device that supports Caller ID Just about every MODEM disables Caller ID as the default. For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable Caller ID. If Caller ID is not working, you will only see the word RING for each incoming ring. The most common result, when Caller ID data works, is the following: RING DATE = xxxxx TIME = xxxx NMBR = xxxxxxxxx NAME = xxxxxxxx RING RING … There are other formats as well. The key point is that other data generally appears between the first and second rings. Some telephone companies, especially in Canada, ship Caller ID data in different formats, Check the software handles this. TAPI support for Caller ID was added after Windows 95 was released. Microsoft has an updated version of UniModemV on their Web page that includes Caller ID support. The .INF file for your MODEM also needs to modified to take advantage of this support, and some modems do not yet have this capability. Windows NT 3.X does not include any support for TAPI. Although Windows NT 4.0 does. handyman at actcom.co.il wrote: > Hi, > > I'm interested in somehow retrieving a CallerID number from my modem, > and then displaying the caller's information(taken from my database) > on screen. Has anyone ever done anything like this, or can point me > in the right direction > > Thanks, > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Mon Nov 1 14:49:49 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 1 Nov 2004 14:49:49 -0600 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723371E5@corp-es01.fleetpride.com> Thanks, I'll give it a try at home tonight. Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at colbyconsulting.com Mon Nov 1 17:29:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 01 Nov 2004 18:29:04 -0500 Subject: [AccessD] access security In-Reply-To: <00ef01c4bdc7$26daedc0$45c2f63f@Desktop> Message-ID: <000101c4c06a$a11a7ab0$e8dafea9@ColbyM6805> One thing you should do is set up relationships with child tables, then turn cascade delete off. This will prevent this in some instances. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Eget Sent: Friday, October 29, 2004 10:54 AM To: AccessD at databaseadvisors.com Subject: [AccessD] access security I am trying to fix a security issue at my site. My managers like to edit or delete records that they think are inappropriate in a product audit database and usually fail to inform anyone of this. I have locked them out of the backend access by the front end with the directory properties of windows for the back end. But this also does not allow them to enter records either. But I would also like to take one step further and not allow individuals that are entering records into the database from either deleting or editing other individual records. Can anyone share with me how they may have done this in the past? Thanks in advance John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Nov 1 19:14:19 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Tue, 2 Nov 2004 11:14:19 +1000 Subject: [AccessD] CurrentDB Error References: Message-ID: <009601c4c079$47c1de40$fa10a8c0@Albatross> The DAO reference is not broken. Reference is to Microsoft DAO 3.6 Object library The actual file is C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL Since the Access97 apps have been stable for a long time, my line of thinking is that some how the DAO360.DLL file has been updated either by installed another program, doing a microsoft update etc. So I searched all instances of DAO360.dll and placed an earlier build version in the folder. Same result. I have now compared similar Access97 application installed on another WinXP box. These apps have reference to DAO3.51 So somehow at some point what must have happened on the problem workstation is similar to what is described by Microsoft in one of their KB articles. Microsoft KB303829 describes the occurrance of exactly this error message (Compile Error: Function or interface marked as restricted, or the function uses Automation type not supported in Visual Basic.) after having updated the workstation to Microsoft Windows 2000. Here's the article pointer: http://support.microsoft.com/default.aspx?scid=kb;en-us;303829 In a nutshell: When installing Windows 2000 an Access97 gets into trouble: "because during Windows2000 installation, the windows registry registers DAO3.60 and updates the reference in Access97 to DAO 3.60. Windows also removes the registration for DAO3.51" Nice eh? Really .... nice!! Microsoft's suggested action is to register DAO3.51 again using the regsvr32.exe Now, what I'd like to know is : Is DAO3.60 not compatible with Access97 Should you only use DAO3.51 ?? Secondly, how do you register DAO3.51 back into the registry?? I cannot use regsrv32 on WinXP. Is this another subtle attempt by Microsoft to abandon older M$ software? Enough! In summary: Can some one please give me the recipe for registering DAO3.51 in WinXP? Regards Borge Gold Coast, Australia ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, November 01, 2004 10:57 PM Subject: RE: [AccessD] CurrentDB Error > > The DAO reference may be broken. Open a module in design view, click > tools/references. See if it's listed as MISSING or BROKEN. If it is, most > likely you'll simply need to re-register it with regsvr32.exe > > I none are listed missing or broken, check any reference that is not > currently checked, close the MDB and Access, re-open and uncheck the > reference you just checked. Then try a compile. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen > Hansen > Sent: Sunday, October 31, 2004 9:51 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] CurrentDB Error > > > Hi, > I have a some Access97 database applications that have been working for > years. > They are currently sitting on WinXP with AccessXP installed as well. > > Been working on the XP box for over a year! > > Recently when making a minor modification and doing a 'Compile and Save' I > get the following message on the first instance of CurrentDb > > Compile Error: > Funtion or interface marked as restricted, or the function uses Automation > type not supported in Visual Basic. > > I have reference to Microsoft DAO Object Library 3.6 > The dao.dll is version 03.60.8618.0 > > Even if I try to disambiguate the thing, the compile error comes up: > > like: > > dim db as DAO.Database > set db = CurrentDb > > when compiling it will error on the set db = CurrentDb line. > > Can anyone help me to shed light on what is going on? > > > Regards > Borge > Gold Coast, Australia > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From pcs at azizaz.com Mon Nov 1 19:54:20 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Tue, 2 Nov 2004 11:54:20 +1000 Subject: Fw: [AccessD] CurrentDB Error - Solved! Message-ID: <000901c4c07e$df13de10$fa10a8c0@Albatross> Managed to register dao350.dll using the regsrv32.exe "path\dao350.dll" command. After deselectiong "Microsoft DAO 3.6" and selecting "Microsoft DAO 3.51" in the reference section My Access97 apps are up and running again! Regards Borge ----- Original Message ----- From: "Borge Steen Hansen" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 02, 2004 11:14 AM Subject: Re: [AccessD] CurrentDB Error > > In summary: Can some one please give me the recipe for registering DAO3.51 > in WinXP? > > Regards > Borge > Gold Coast, Australia > > --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From accessd at shaw.ca Mon Nov 1 21:03:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 01 Nov 2004 19:03:16 -0800 Subject: [AccessD] CurrentDB Error In-Reply-To: <009601c4c079$47c1de40$fa10a8c0@Albatross> Message-ID: Hi Borge: Try something like: c:\MyWindowsDirectory\(system or system32)\regsrv32 -u DAO360.DLL to check that is removed or not improperly registered and then c:\MyWindowsDirectory\(system or system32)\regsrv32 C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL To register the dll. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Monday, November 01, 2004 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentDB Error The DAO reference is not broken. Reference is to Microsoft DAO 3.6 Object library The actual file is C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL Since the Access97 apps have been stable for a long time, my line of thinking is that some how the DAO360.DLL file has been updated either by installed another program, doing a microsoft update etc. So I searched all instances of DAO360.dll and placed an earlier build version in the folder. Same result. I have now compared similar Access97 application installed on another WinXP box. These apps have reference to DAO3.51 So somehow at some point what must have happened on the problem workstation is similar to what is described by Microsoft in one of their KB articles. Microsoft KB303829 describes the occurrance of exactly this error message (Compile Error: Function or interface marked as restricted, or the function uses Automation type not supported in Visual Basic.) after having updated the workstation to Microsoft Windows 2000. Here's the article pointer: http://support.microsoft.com/default.aspx?scid=kb;en-us;303829 In a nutshell: When installing Windows 2000 an Access97 gets into trouble: "because during Windows2000 installation, the windows registry registers DAO3.60 and updates the reference in Access97 to DAO 3.60. Windows also removes the registration for DAO3.51" Nice eh? Really .... nice!! Microsoft's suggested action is to register DAO3.51 again using the regsvr32.exe Now, what I'd like to know is : Is DAO3.60 not compatible with Access97 Should you only use DAO3.51 ?? Secondly, how do you register DAO3.51 back into the registry?? I cannot use regsrv32 on WinXP. Is this another subtle attempt by Microsoft to abandon older M$ software? Enough! In summary: Can some one please give me the recipe for registering DAO3.51 in WinXP? Regards Borge Gold Coast, Australia ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, November 01, 2004 10:57 PM Subject: RE: [AccessD] CurrentDB Error > > The DAO reference may be broken. Open a module in design view, click > tools/references. See if it's listed as MISSING or BROKEN. If it is, most > likely you'll simply need to re-register it with regsvr32.exe > > I none are listed missing or broken, check any reference that is not > currently checked, close the MDB and Access, re-open and uncheck the > reference you just checked. Then try a compile. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen > Hansen > Sent: Sunday, October 31, 2004 9:51 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] CurrentDB Error > > > Hi, > I have a some Access97 database applications that have been working for > years. > They are currently sitting on WinXP with AccessXP installed as well. > > Been working on the XP box for over a year! > > Recently when making a minor modification and doing a 'Compile and Save' I > get the following message on the first instance of CurrentDb > > Compile Error: > Funtion or interface marked as restricted, or the function uses Automation > type not supported in Visual Basic. > > I have reference to Microsoft DAO Object Library 3.6 > The dao.dll is version 03.60.8618.0 > > Even if I try to disambiguate the thing, the compile error comes up: > > like: > > dim db as DAO.Database > set db = CurrentDb > > when compiling it will error on the set db = CurrentDb line. > > Can anyone help me to shed light on what is going on? > > > Regards > Borge > Gold Coast, Australia > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Nov 1 22:04:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 20:04:57 -0800 Subject: Fw: [AccessD] CurrentDB Error - Solved! References: <000901c4c07e$df13de10$fa10a8c0@Albatross> Message-ID: <41870769.5030305@shaw.ca> I have been using DAO360.dll for a couple of years on Access 97 with no problems This is version 3.60.8618.0. I believe Jet SP 8. SP4 though 6 had a lot of problems. You may have Unicode problems with 3.51 since it is ANSI based. Borge Steen Hansen wrote: >Managed to register dao350.dll using >the >regsrv32.exe "path\dao350.dll" >command. > >After deselectiong "Microsoft DAO 3.6" and selecting "Microsoft DAO 3.51" in >the reference section My Access97 apps are up and running again! > >Regards >Borge > >----- Original Message ----- >From: "Borge Steen Hansen" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, November 02, 2004 11:14 AM >Subject: Re: [AccessD] CurrentDB Error > > > > >>In summary: Can some one please give me the recipe for registering DAO3.51 >>in WinXP? >> >>Regards >>Borge >>Gold Coast, Australia >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Tue Nov 2 00:56:18 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 1 Nov 2004 22:56:18 -0800 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <41870769.5030305@shaw.ca> Message-ID: <200411020656.iA26u9L27038@databaseadvisors.com> I may be picking up an assignment that sounds like an Access front end into SQL tables. I am waiting to hear from the project manager for the more details you all will ask me for. Is there any major difference between access tables and SQL tables I should be aware of? I think I do good table design, normalization and naming conventions. thanks Joe Hecht jmhla at earthlink.net 28g From martyconnelly at shaw.ca Tue Nov 2 01:24:41 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 23:24:41 -0800 Subject: [AccessD] SQL Tables vs. Access Tables References: <200411020656.iA26u9L27038@databaseadvisors.com> Message-ID: <41873639.8030103@shaw.ca> Just for starters the data types are just different enough to be a nuisance See this comparision table http://www.able-consulting.com/ADODataTypeEnum.htm Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > -- Marty Connelly Victoria, B.C. Canada From accessd667 at yahoo.com Tue Nov 2 02:36:28 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 00:36:28 -0800 (PST) Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E5@corp-es01.fleetpride.com> Message-ID: <20041102083628.85337.qmail@web61105.mail.yahoo.com> Thnx for all the great tips!! I'm going to try them, ask around about the virusscan, etc. I've got a s##t load of work to do again ;-) "Hale, Jim" wrote: Thanks, I'll give it a try at home tonight. Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd667 at yahoo.com Tue Nov 2 04:15:16 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 02:15:16 -0800 (PST) Subject: [AccessD] CheckDate? Message-ID: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Hi group, I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. TIA Sander If Not IsNull(txtExportDate) Then 'Check month part If Mid(txtExportDate, 4, 2) > 12 Then 'incorrect date! Else blnDate = True End If 'Check day part Select Case Left(txtExportDate, 2) Case 31 If (Mid(txtExportDate, 4, 2) = 1) Or _ (Mid(txtExportDate, 4, 2) = 3) Or _ (Mid(txtExportDate, 4, 2) = 5) Or _ (Mid(txtExportDate, 4, 2) = 7) Or _ (Mid(txtExportDate, 4, 2) = 8) Or _ (Mid(txtExportDate, 4, 2) = 10) Or _ (Mid(txtExportDate, 4, 2) = 12) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 30 If (Mid(txtExportDate, 4, 2) = 4) Or _ (Mid(txtExportDate, 4, 2) = 6) Or _ (Mid(txtExportDate, 4, 2) = 9) Or _ (Mid(txtExportDate, 4, 2) = 11) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 28 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'correct date blnDate = True Else 'incorrectdate blnDate = False End If Case 1 To 27 'correct day - month combi blnDate = True Case 29 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'incorrect date blnDate = False Else 'correctdate blnDate = True End If Case Else blnDate = False End Select Else 'Null date Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ vbExclamation, "Onjuiste datum") txtExportDate.SetFocus Exit Sub End If If Not blnDate Then Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ & vbCrLf & "" _ , vbCritical, "Onjuiste datum") txtExportDate.SetFocus Exit Sub Else --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From gustav at cactus.dk Tue Nov 2 04:45:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 11:45:55 +0100 Subject: [AccessD] CheckDate? In-Reply-To: <20041102101516.73568.qmail@web61109.mail.yahoo.com> References: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Message-ID: <18110481571.20041102114555@cactus.dk> Hi Sander If you operate with one format only (dd-mm-yyyy) then you can follow this route: 1. Check that it represents a valid date with IsDate(txtExportDate) 2. If so, convert to date and reformat: datDate = CDate(txtExportDate) strDate = Format(datDate, "dd-mm-yyyy") Now, compare the strings: If StrComp(txtExportDate, strDate) = 0 Then ' Date string is OK. End If The last step may not be necessary as it will insist on date strings like 02-09-2004 where 2-9-04 would be valid as well. The reformat, though, is needed to catch strings like 12-20-2004 which IsDate() accepts as 20-12-2004. /gustav > I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. > TIA > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else From d.dick at uws.edu.au Tue Nov 2 05:15:43 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 2 Nov 2004 22:15:43 +1100 Subject: [AccessD] A2K: Currency as a percentage Message-ID: Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? many thanks in advance Darren From gustav at cactus.dk Tue Nov 2 05:30:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 12:30:17 +0100 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: References: Message-ID: <11613143709.20041102123017@cactus.dk> Hi Darren You divide 5 by 100 (=0.05 as "per cent" = "per hundred") and multiply that with the amount: 100 x 0.05 = 5.00 /gustav > Hello all > Can never remember how to do percentages off the top of my head > I have a a form that allows users to put in any Dollar amount for a discount > I also want to put in another txtBox and allow users to type in say...5 and > have the machine calculate discounts in Dollars from the "5" value > Thus have access caculate (in this case) 5 percent of the whole and then put > that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount > field > Make sense? > many thanks in advance > Darren From deanellis at iprimus.com.au Tue Nov 2 05:10:11 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Tue, 2 Nov 2004 21:40:11 +1030 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: Message-ID: Dazza, The formula is fairly simple. Just divide 5 (being the percentage) by 100 and multiply it by the dollar amount. This will give the percentage og the dollar amount in dollars. Putting it into context. Percent field = txtpercent Dollar field = txtdollar discount field = txtdiscount txtdiscount = txtdollar * (txtpercent/100) Cheers Dean -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, 2 November 2004 9:46 PM To: AccessD List Subject: [AccessD] A2K: Currency as a percentage Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Tue Nov 2 07:02:08 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 05:02:08 -0800 (PST) Subject: [AccessD] CheckDate? In-Reply-To: <18110481571.20041102114555@cactus.dk> Message-ID: <20041102130208.18853.qmail@web61108.mail.yahoo.com> Thnx Gustav (as always) However, I added some extra checks to rule out 'impossible dates' like 29,30 or 31 februari, 31 november, etc. Gustav Brock wrote: Hi Sander If you operate with one format only (dd-mm-yyyy) then you can follow this route: 1. Check that it represents a valid date with IsDate(txtExportDate) 2. If so, convert to date and reformat: datDate = CDate(txtExportDate) strDate = Format(datDate, "dd-mm-yyyy") Now, compare the strings: If StrComp(txtExportDate, strDate) = 0 Then ' Date string is OK. End If The last step may not be necessary as it will insist on date strings like 02-09-2004 where 2-9-04 would be valid as well. The reformat, though, is needed to catch strings like 12-20-2004 which IsDate() accepts as 20-12-2004. /gustav > I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. > TIA > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From accessd667 at yahoo.com Tue Nov 2 07:08:11 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 05:08:11 -0800 (PST) Subject: [AccessD] frmCalendar from ADHB2K? Message-ID: <20041102130811.58524.qmail@web61105.mail.yahoo.com> Hi group, I'm using the form frmCalendar from the ADHB 2k in an app i'm using. However it seems that I cannot use the TAB-key to navigate through the form?!?! Why is that? I already checked TabStop and TabIndex and these properties are correct. TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From gustav at cactus.dk Tue Nov 2 07:19:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 14:19:52 +0100 Subject: [AccessD] CheckDate? In-Reply-To: <20041102130208.18853.qmail@web61108.mail.yahoo.com> References: <20041102130208.18853.qmail@web61108.mail.yahoo.com> Message-ID: <17619718283.20041102141952@cactus.dk> Hi Sander > However, I added some extra checks to rule out 'impossible dates' > like 29,30 or 31 februari, 31 november, etc. Well, that's the point - IsDate() checks that as well! Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. /gustav From lmrazek at lcm-res.com Tue Nov 2 08:16:40 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Tue, 2 Nov 2004 08:16:40 -0600 Subject: [AccessD] Report Orientation Changing on Terminal Server In-Reply-To: <17619718283.20041102141952@cactus.dk> Message-ID: <200411020916925.SM01564@hplaptop> Greetings: I have an app that is accessed via Terminal Server (Access XP Frontend, Runtime), and have found that it is changing all of my reports to Portrait from Landscape. Is there a workaround for this? I've tried to add the following code to report's "report_open" property: Me.Printer.Orientation = acPRORLandscape But this code only works when you open the report, close the report, then reopen. Has anyone else experienced this? Any hints? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From cyx5 at cdc.gov Tue Nov 2 08:26:42 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 09:26:42 -0500 Subject: [AccessD] Report Orientation Changing on Terminal Server Message-ID: If this is an older version of Access, there is a *nasty* bug - on the general tab of the database - TOOLS OPTIONS GENERAL, if the Track Name Auto Correct Info is checked as true, Access then opens up the reports using the default options for each user. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, November 02, 2004 9:17 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Orientation Changing on Terminal Server Greetings: I have an app that is accessed via Terminal Server (Access XP Frontend, Runtime), and have found that it is changing all of my reports to Portrait from Landscape. Is there a workaround for this? I've tried to add the following code to report's "report_open" property: Me.Printer.Orientation = acPRORLandscape But this code only works when you open the report, close the report, then reopen. Has anyone else experienced this? Any hints? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Tue Nov 2 08:54:48 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 09:54:48 -0500 Subject: [AccessD] Comparing Values of Fields Message-ID: We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... From roz.clarke at donnslaw.co.uk Tue Nov 2 09:14:31 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 2 Nov 2004 15:14:31 -0000 Subject: [AccessD] Comparing Values of Fields Message-ID: <61F915314798D311A2F800A0C9C8318805CED744@dibble.observatory.donnslaw.co.uk> When I needed to do this is did it in DAO (it was a while ago). I don't have time to hunt the code out, but basically if you open a recordset for each table you can then loop through the first recordset, finding the matching row in the 2nd recordset, and then (if the fields are in the same order) simply loop through the fields collection of both recordsets looking for non-matching fields. Where you get a mismatch you can output the values of both fields to a temp table. Then move on to the next row in rs1 and so forth. HTH Roz -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Comparing Values of Fields We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From JColby at dispec.com Tue Nov 2 09:37:00 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 10:37:00 -0500 Subject: [AccessD] Comparing Values of Fields Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF948@DISABILITYINS01> IN SQL you can do this using aliased fields to find the differences: SELECT MyFld1, TheirFld1, NoMathcFld1: MyFld1 <> TheirFld1, MyFld2, TheirFld2, NoMathcFld2: MyFld2 <> TheirFld2, .... Thus any true in any NoMatchFldX is a place where the field values don't match. In the where clause do a huge NoMatchFld1 OR NoMatchFld2 etc to pull all such records. Now you have all of the records with some field that doesn't match and indicator flags telling you which field(s). I am confident you can take it from there. ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Tuesday, November 02, 2004 9:55 AM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing Values of Fields We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Nov 2 09:40:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 16:40:32 +0100 Subject: [AccessD] Comparing Values of Fields In-Reply-To: References: Message-ID: <17528158880.20041102164032@cactus.dk> Hi Karen Apart from the obvious (comparing each pair of fields in a query) you can calculate for each record an MD5 or SHA-256 hash value of a string build by concatenating the formatted values: http://www.frez.co.uk/freecode.htm#md5 The retrieve those records where the hash values don't match. You could also calculate the CRC value. /gustav > Date: 2004-11-02 15:54 > We are maintaining a parts database. I have the master parts database > for manufacturers in a table named tblParts. The manufacturer submits > to us an updated parts list in a table named tblMrfParts. > tblParts contains 25 fields. > tblMfrParts contains the same 25 fields. > I need to compare the values in the 25 fields, tying part number to part > number. If the value in the tblMfrParts is different for that part > number for any field, show our database field value and the > manufacturers field value. > Suggestions? Come on, I answered a question today... From JColby at dispec.com Tue Nov 2 10:51:33 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 11:51:33 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy From CMackin at quiznos.com Tue Nov 2 10:57:24 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Tue, 2 Nov 2004 09:57:24 -0700 Subject: [AccessD] TOP 1 kinda thing Message-ID: SELECT CLID, MIN(ATPID) AS MinATPID FROM WhateverTable GROUP BY CLID Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 02, 2004 9:52 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] TOP 1 kinda thing I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Nov 2 11:03:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 18:03:56 +0100 Subject: [AccessD] TOP 1 kinda thing In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> Message-ID: <14933162254.20041102180356@cactus.dk> Hi John How about a Group By CLID selecting MIN(ATPID)? /gustav > I have a situation where a claim can have more than one ATP > CLID ATPID > 1 1 > 1 2 > 1 3 > 2 4 > 2 5 > 3 6 > 3 7 > 3 8 > I need to select only the first ATPID such that the result set looks like: > CLID ATPID > 1 1 > 2 4 > 3 6 > Is it possible to do this directly in SQL? > John W. Colby > The DIS Database Guy From JColby at dispec.com Tue Nov 2 11:12:00 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 12:12:00 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94A@DISABILITYINS01> Thanks, that was what I was looking for. John W. Colby The DIS Database Guy -----Original Message----- From: Mackin, Christopher [mailto:CMackin at quiznos.com] Sent: Tuesday, November 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 1 kinda thing SELECT CLID, MIN(ATPID) AS MinATPID FROM WhateverTable GROUP BY CLID Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 02, 2004 9:52 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] TOP 1 kinda thing I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 handyman at actcom.co.il Tue Nov 2 11:07:46 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 02 Nov 2004 19:07:46 +0200 Subject: [AccessD] Caller ID and Access In-Reply-To: <418687BB.3060008@shaw.ca> References: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20041102190512.0291ad90@pop5.actcom.net.il> Thanks! This program from Mountain Systems seems to do a lot of the stuff I want. Since it stores all information in an Access database, I can just integrate it with my database with some work. Thanks again! gm At 11:00 AM, 11/1/2004 -0800, you wrote: > From a few years back >You will have to use TAPI, your modem need's to support caller ID >Ughh, you are in Italy so you may have to check the format of caller id >North America had half a dozen standards from the various Telco's in Mid 90's >It was a mess. >It is essentially about 55 bytes of data being sent between the first and >second ring of the phone >It can be more data, there are a couple of formats some included the >callers name and blocking info in addition to the number. >I can't remember if there is now an established ISO standard >I did this back in 99. > >What I would do is try the trial version of Mountain Sys on your telephone >system and modem >It is only $15 a client, but you could roll your own code via Tapi after >getting a format from your >Telco but maybe they have standardized format by now in Italy. > > Companies that seem to handle callerid connections to Access. > > Mountain Systems http://www.mtnsys.com > > CallAudit Software has sample Access 97 & 95 database with > trial software that connects thru DDE. > > There are a lot of others. > -------------------------------------------------------------------- > From Mountain System FAQ buried in there > >How to Test a MODEM for Caller ID Support >Caveats. > >Necessary equipment > > * Caller ID Service From your local telephone company > * A Voice MODEM or hardware device that supports Caller ID > > > Just about every MODEM disables Caller ID as the default. > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > Caller ID. > If Caller ID is not working, you will only see the word RING for > each incoming ring. > > The most common result, when Caller ID data works, is the following: > > RING > > DATE = xxxxx > > TIME = xxxx > > NMBR = xxxxxxxxx > > NAME = xxxxxxxx > > RING > > RING … > > There are other formats as well. The key point is that other data > generally appears between the first and second rings. > > Some telephone companies, especially in Canada, ship Caller ID data in > different formats, Check the software handles this. > > TAPI support for Caller ID was added after Windows 95 was released. > Microsoft has an updated version of UniModemV on their Web page that > includes Caller ID support. The .INF file for your MODEM also needs to > modified to take advantage of this support, and some modems do not > yet have this capability. > > Windows NT 3.X does not include any support for TAPI. Although Windows > NT 4.0 does. >handyman at actcom.co.il wrote: > >>Hi, >> >>I'm interested in somehow retrieving a CallerID number from my modem, and >>then displaying the caller's information(taken from my database) on >>screen. Has anyone ever done anything like this, or can point me in the >>right direction >> >>Thanks, >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From JColby at dispec.com Tue Nov 2 11:24:15 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 12:24:15 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94B@DISABILITYINS01> Yep, that did it. Thanks. John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, November 02, 2004 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 1 kinda thing Hi John How about a Group By CLID selecting MIN(ATPID)? /gustav > I have a situation where a claim can have more than one ATP > CLID ATPID > 1 1 > 1 2 > 1 3 > 2 4 > 2 5 > 3 6 > 3 7 > 3 8 > I need to select only the first ATPID such that the result set looks like: > CLID ATPID > 1 1 > 2 4 > 3 6 > Is it possible to do this directly in SQL? > John W. Colby > The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mnptl at sonmedia.com Tue Nov 2 11:39:23 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 12:39:23 -0500 (EST) Subject: [AccessD] Time Synchronization Message-ID: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with naything ... yet ... Thanks, Mark Naud? From Patricia.O'Connor at dfa.state.ny.us Tue Nov 2 11:43:08 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 2 Nov 2004 12:43:08 -0500 Subject: [AccessD] Form design question Message-ID: I think you are talking about a continuous subform The main form would contain the order number, order date etc The subform would contain a line for each product, the quantity and amount. If you are looking at it for data entry, then you can use dropdown box that links to product table to select the product, etc. Hth Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > accma at sympatico.ca > Sent: Thursday, October 21, 2004 01:07 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Form design question > > Hi all, > > I'm wondering if it's possible to have multiple sections in a > forms like in a report. I don't exactly know how to explane > this so I'll demontrate it as best as I can. On a form, I > want to display all the products available. That form would > be the order entry form. What I would like to do is put > multiple column like this : product #, qt, price, product #, > qt, price, product #, qt, price. The second and third > "product #, qt, price" would be the continuing of the first column. > > Is this even possible and if so, how can I do this? > > Tanks! > > Annie > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Chris.Foote at uk.thalesgroup.com Tue Nov 2 12:16:29 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 2 Nov 2004 18:16:29 -0000 Subject: [AccessD] Time Synchronization Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote > -----Original Message----- > From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] > Sent: Tuesday, November 02, 2004 5:39 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Time Synchronization > > > Does anyone know of any VBA code to be placed within an > Access application > that can easily poll an Internet-based time server, and > return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > > Thanks, > > Mark Naud? > > > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Tue Nov 2 12:40:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 02 Nov 2004 13:40:38 -0500 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <200411020656.iA26u9L27038@databaseadvisors.com> References: <200411020656.iA26u9L27038@databaseadvisors.com> Message-ID: <4187D4A6.1090003@rogers.com> Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > I would suggest the following: 1. Design it in Access, where you're comfortable. Then use the upsizing wizard to move it to SS when you're ready. Make sure that every combo/list/form etc. uses a named query, NOT a select statement. To save yourself some issues down the road, where you would normally bind a form to a table, create a named query (even if it's nothing more than SELECT * FROM MyTable) for every form. This will save you a lot of hassle in the converted app. 2. Get a copy of SQL: Access to SQL Server, by our own Harkins and Reid. 3. Many of the things that we are comfortable in doing in Access are quite the wrong approach with SQL Server, in terms of best practices. This part cannot be communicated in a simple email message, but in general it reduces to this: the old practice of binding forms to tables is all wrong. Even if you substitute queries for the tables, if it's SELECT * it's all wrong (unless the table is very small). The number of times a user actually wants to see all the rows is relatively small. To give one example, a form showing Sales might start with a datasheet or continuous form that shows only the most important columns. Instead of showing all the sales, you might have 3 or 4 buttons on it, Sales30, Sales60, Sales90 and All. Each of these would change the data source to a stored procedure that says something like SELECT MyColumns FROM Sales WHERE SaleDate > GetDate() - 30. And so on. This results in lightning performance, which is usually demanded in a SQL Server app. 4. If all else fails, hire me. LOL. Arthur From prodevmg at yahoo.com Tue Nov 2 14:10:01 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 2 Nov 2004 12:10:01 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <20041102201001.60145.qmail@web20424.mail.yahoo.com> Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From mnptl at sonmedia.com Tue Nov 2 14:20:38 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 15:20:38 -0500 (EST) Subject: [AccessD] Time Synchronization In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Message-ID: <58926.10.235.219.133.1099426838.webmail@10.235.219.133> Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, that could take months! I'm currently assisting a pharmaceutical company with ensuring that they meet all FDA regulations, especially those concerning electronic records. The concept of handling their time synchronization in a centralized way is somewhat new, and will have to go up the chain of command to head office, mulled over, a policy put in place, local IT procedures created, and then the technical controls instituted... a very long process. I was hoping that there was something similar to: command.com /c net time \\ /set /y that could use for synchronizing the local machine's time to a "standard" clock available on the Internet, such as NIST. I tried the command above with: command.com /c net time \\129.6.15.28 /set /y ... (which is one of the NIST time server IP addresses) but with no success. It CAN be used for synchronizing with the back-end server, but I was hoping for something more thorough! Let me know if you know of any other way. Thanks, Mark -----Original Message----- From: "Foote, Chris" Subject: RE: [AccessD] Time Synchronization Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote -----Original Message----- Sent: Tuesday, November 02, 2004 5:39 PM Subject: [AccessD] Time Synchronization Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with anything ... yet ... From JHewson at karta.com Tue Nov 2 14:22:14 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 14:22:14 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6B@karta-exc-int.Karta.com> Lonnie, If you mean print from the preview, you'll need to have a custom menu. If you mean print from a button click without preview: DoCmd.OpenReport "SomeReport" works well. Did I miss something? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 2:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Nov 2 14:33:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 2 Nov 2004 14:33:35 -0600 Subject: [AccessD] Time Synchronization Message-ID: <123701F54509D9119A4F00D0B747349016D055@main2.marlow.com> I wrote a sync program in VB. You could use it in Access, just uses the Winsock control. Drew -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Tuesday, November 02, 2004 2:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Time Synchronization Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, that could take months! I'm currently assisting a pharmaceutical company with ensuring that they meet all FDA regulations, especially those concerning electronic records. The concept of handling their time synchronization in a centralized way is somewhat new, and will have to go up the chain of command to head office, mulled over, a policy put in place, local IT procedures created, and then the technical controls instituted... a very long process. I was hoping that there was something similar to: command.com /c net time \\ /set /y that could use for synchronizing the local machine's time to a "standard" clock available on the Internet, such as NIST. I tried the command above with: command.com /c net time \\129.6.15.28 /set /y ... (which is one of the NIST time server IP addresses) but with no success. It CAN be used for synchronizing with the back-end server, but I was hoping for something more thorough! Let me know if you know of any other way. Thanks, Mark -----Original Message----- From: "Foote, Chris" Subject: RE: [AccessD] Time Synchronization Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote -----Original Message----- Sent: Tuesday, November 02, 2004 5:39 PM Subject: [AccessD] Time Synchronization Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with anything ... yet ... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Nov 2 14:44:52 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 2 Nov 2004 15:44:52 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A0BB29@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB98F@ADGSERVER> Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Nov 2 14:44:11 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 Nov 2004 15:44:11 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2742@xlivmbx21.aig.com> I've not tried this out, but you can probably do this by previewing the report and displaying a small Pop-up form with the buttons needed to print, quit, save to file etc. I do this kind of thing in a 'normal' access project, with the Access window visible, opening the report with code like this... PrintPreview "SomeReport", me.Name While IsLoaded("PrintPreviewFrm") DoEvents Wend The routine PrintPreview takes the name of the report and the calling form as parameters and then opens the form PrintPreviewFrm which in turn opens the report in preview mode. The while loop then pauses the calling code until the form is closed. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: Tuesday, November 02, 2004 3:22 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Calling all Gurus - Hide Access Window > > Lonnie, > If you mean print from the preview, you'll need to have a custom menu. > If you mean print from a button click without preview: DoCmd.OpenReport > "SomeReport" works well. > Did I miss something? > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson > Sent: Tuesday, November 02, 2004 2:10 PM > To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; > AccessD solving' > Subject: [AccessD] Calling all Gurus - Hide Access Window > > > Hello all, > > I am using the popular API code that hides the access window and just > shows a form on the desktop. (Small snippet below) > > Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) > As Long > Dim dwReturn As Long > Const SW_HIDE = 0 > Const SW_SHOWNORMAL = 1 > Const SW_SHOWMINIMIZED = 2.... > > It is working fine except withe reports. I am even able to preview > reports. However, how do I print them? Has anyone worked this part out? > > I know there is an answer out there somewhere! > > Thanks in advance. > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 2 15:04:23 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 13:04:23 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 2 15:12:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 2 Nov 2004 22:12:48 +0100 Subject: [AccessD] Caller ID and Access Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54C5@stekelbes.ithelps.local> If you have ISDN you gonna need a ISDN card with CAPI support. There is some VB code out there to use CAPI in access. I have such an Access DB that use a CAPI control for wich the VB code was available. Dont know the website anymore, it was several years ago. This only works with ISDN and a CAPI supported card like Eicon Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, November 02, 2004 6:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Caller ID and Access Thanks! This program from Mountain Systems seems to do a lot of the stuff I want. Since it stores all information in an Access database, I can just integrate it with my database with some work. Thanks again! gm At 11:00 AM, 11/1/2004 -0800, you wrote: > From a few years back >You will have to use TAPI, your modem need's to support caller ID Ughh, >you are in Italy so you may have to check the format of caller id North >America had half a dozen standards from the various Telco's in Mid 90's >It was a mess. >It is essentially about 55 bytes of data being sent between the first >and second ring of the phone It can be more data, there are a couple >of formats some included the callers name and blocking info in addition >to the number. >I can't remember if there is now an established ISO standard I did this >back in 99. > >What I would do is try the trial version of Mountain Sys on your >telephone system and modem It is only $15 a client, but you could roll >your own code via Tapi after getting a format from your Telco but maybe >they have standardized format by now in Italy. > > Companies that seem to handle callerid connections to Access. > > Mountain Systems http://www.mtnsys.com > > CallAudit Software has sample Access 97 & 95 database with > trial software that connects thru DDE. > > There are a lot of others. > -------------------------------------------------------------------- > From Mountain System FAQ buried in there > >How to Test a MODEM for Caller ID Support Caveats. > >Necessary equipment > > * Caller ID Service From your local telephone company > * A Voice MODEM or hardware device that supports Caller ID > > > Just about every MODEM disables Caller ID as the default. > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > Caller ID. > If Caller ID is not working, you will only see the word RING for > each incoming ring. > > The most common result, when Caller ID data works, is the following: > > RING > > DATE = xxxxx > > TIME = xxxx > > NMBR = xxxxxxxxx > > NAME = xxxxxxxx > > RING > > RING … > > There are other formats as well. The key point is that other data > generally appears between the first and second rings. > > Some telephone companies, especially in Canada, ship Caller ID data in > different formats, Check the software handles this. > > TAPI support for Caller ID was added after Windows 95 was released. > Microsoft has an updated version of UniModemV on their Web page that > includes Caller ID support. The .INF file for your MODEM also needs to > modified to take advantage of this support, and some modems do not > yet have this capability. > > Windows NT 3.X does not include any support for TAPI. Although >Windows > NT 4.0 does. >handyman at actcom.co.il wrote: > >>Hi, >> >>I'm interested in somehow retrieving a CallerID number from my modem, >>and then displaying the caller's information(taken from my database) >>on screen. Has anyone ever done anything like this, or can point me >>in the right direction >> >>Thanks, >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Nov 2 15:13:53 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 2 Nov 2004 13:13:53 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: Message-ID: <20041102211353.70465.qmail@web20424.mail.yahoo.com> Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From stuart at lexacorp.com.pg Tue Nov 2 15:42:41 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Nov 2004 07:42:41 +1000 Subject: [AccessD] Time Synchronization In-Reply-To: <58926.10.235.219.133.1099426838.webmail@10.235.219.133> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Message-ID: <41888BF1.20826.E4E5F62@lexacorp.com.pg> On 2 Nov 2004 at 15:20, mnptl at sonmedia.com wrote: > > I was hoping that there was something similar to: > > command.com /c net time \\ /set /y > > that could use for synchronizing the local machine's time to a "standard" > clock available on the Internet, such as NIST. I tried the command above > with: > > command.com /c net time \\129.6.15.28 /set /y > > ... (which is one of the NIST time server IP addresses) but with no > success. It CAN be used for synchronizing with the back-end server, but I > was hoping for something more thorough! > > Let me know if you know of any other way. > Generally I just use something like AboutTime from http://www.arachnoid.com/abouttime/index.html I normally run it as a single machine which has permanent internet access such as a mail server and use net time on all the workstations to keep them in synch. But if you really need to embed it in Access, download the code at http://www.freevbcode.com/ShowCode.asp?ID=1594 It is a simple one form VB NTP client application. You should just about be able to cut and paste the whole thing into an Access from. -- Stuart From cfoust at infostatsystems.com Tue Nov 2 15:48:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 13:48:53 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: It seems to me that the one time I did something like this, I had to create a popup form that looked like a toolbar and open that when the report opened so that I could print the report. I don't recall whether a floating toolbar was an option, but it you hide the window, then logically, you also hide the menus. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, November 02, 2004 1:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Nov 2 15:51:55 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 15:51:55 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6C@karta-exc-int.Karta.com> Lonnie, You can't preview the report with Access Window hidden. To preview the report, you must unhide the Access Window and then hide it again when the report preview is completed. Sequence of events to preview report... - click button to preview report - set form property visible to false - unhide Access Window - preview report - make sure you have a custom menu. - close report - hide Access Window - set form property visible to True HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ 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 Nov 2 15:54:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 3 Nov 2004 08:54:05 +1100 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <20041102211353.70465.qmail@web20424.mail.yahoo.com> Message-ID: <200411022154.iA2LsDXH006088@cooper.uws.edu.au> Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Nov 2 15:59:34 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Nov 2004 14:59:34 -0700 Subject: [AccessD] Locked form w/editable subform? Message-ID: <112490-220041122215934514@christopherhawkins.com> Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From stephen at bondsoftware.co.nz Tue Nov 2 15:40:46 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 03 Nov 2004 10:40:46 +1300 Subject: [AccessD] SQL Tables vs. Access Tables Message-ID: <70F3D727890C784291D8433E9C418F298FDA@server.bondsoftware.co.nz> Arthur, are these the sort of things covered in the Harkins/Reid book ...? Stephen Bond > > 3. Many of the things that we are comfortable in doing in Access are > quite the wrong approach with SQL Server, in terms of best practices. > This part cannot be communicated in a simple email message, but in > general it reduces to this: the old practice of binding forms > to tables > is all wrong. > From JHewson at karta.com Tue Nov 2 16:09:03 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 16:09:03 -0600 Subject: [AccessD] Locked form w/editable subform? Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6D@karta-exc-int.Karta.com> Could you set each control's Enabled and Locked property to No and Yes. That essentially, makes the form uneditable but allows the subform to function normally. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, November 02, 2004 4:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Nov 2 16:09:35 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Nov 2004 08:09:35 +1000 Subject: [AccessD] Locked form w/editable subform? In-Reply-To: <112490-220041122215934514@christopherhawkins.com> Message-ID: <4188923F.15285.E66FFC3@lexacorp.com.pg> On 2 Nov 2004 at 14:59, Christopher Hawkins wrote: > Suppose you have frmMain and frmSub. > > frmMain is (duh) the main form and frmSub is the SourceObject of > subform control sFrm on frmMain. > > How can I set frmMain.AllowEdits to False and still have frmSub > behave as though it's .AllowEdit property is set to True? Right now, > as soon as I change the setting for frmMain, it takes frmSub along > with it. > You could set all the fields on frmMain to Enabled and Locked or set the AllowEdits explicitly in code on_load. -- Stuart From cfoust at infostatsystems.com Tue Nov 2 16:22:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 14:22:11 -0800 Subject: [AccessD] Locked form w/editable subform? Message-ID: Don't set allowEdits to false on frmMain, only on frmSub. On frmMain, have a routine that loops through the data controls and locks them unless you already have them locked by default in design view. The subform control gets locked along with the rest by AllowEdits. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, November 02, 2004 2:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 2 16:20:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 02 Nov 2004 17:20:34 -0500 Subject: [AccessD] Locked form w/editable subform? In-Reply-To: <112490-220041122215934514@christopherhawkins.com> Message-ID: <001001c4c12a$2f9d4640$e8dafea9@ColbyM6805> It happens at load time of the subform. You can manipulate the subform properties after load, or you can leave the main form editable until after load then set that to allow edits false. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, November 02, 2004 5:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at piasd.org Tue Nov 2 16:46:30 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 2 Nov 2004 14:46:30 -0800 Subject: [AccessD] Insert Into query help Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF2785686@server.domain.local> Using Access 2000, what is wrong with this syntax? INSERT INTO Activity ( IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate ) VALUES ( 'Employee', SELECT EmployeeID FROM tbl1104Mess , 6, 28,341, #11/02/04# ) The desired result is to place 1 record into Activity for each 1 record in tbl1104Mess. With all the literal values and the EmployeeID from tbl1104Mess. I get an error when I execute this statement. Thanks for any feedback. Regards, Chris From ssharkins at bellsouth.net Tue Nov 2 17:01:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 2 Nov 2004 18:01:23 -0500 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <70F3D727890C784291D8433E9C418F298FDA@server.bondsoftware.co.nz> Message-ID: <20041102230156.KLAP2398.imf18aec.mail.bellsouth.net@SUSANONE> Stephen, I can't remember if you'll find an actual comparison in the books, but this might help: http://techrepublic.com.com/5100-6313_11-5034390.html?tag=search Martin did a thorough job of discussing the SQL Server objects in the book, so I'm sure what you need is there, I'm just not sure it's in the form of comparison. Susan H. Arthur, are these the sort of things covered in the Harkins/Reid book ...? From chris at piasd.org Tue Nov 2 17:12:04 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 2 Nov 2004 15:12:04 -0800 Subject: [AccessD] Insert Into query help Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF280109F@server.domain.local> I figured it out. I went this direction. INSERT INTO Activity(IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate) SELECT "Employee" as IDType, EmployeeID as ID, "6" as ProjectID, "28" as ComponentID, "341" as SubComponentID, "11/02/04" as ProcessDate FROM tbl1104Mess Worked brilliantly! Thanks for reading -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 02, 2004 2:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Insert Into query help Using Access 2000, what is wrong with this syntax? INSERT INTO Activity ( IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate ) VALUES ( 'Employee', SELECT EmployeeID FROM tbl1104Mess , 6, 28,341, #11/02/04# ) The desired result is to place 1 record into Activity for each 1 record in tbl1104Mess. With all the literal values and the EmployeeID from tbl1104Mess. I get an error when I execute this statement. Thanks for any feedback. Regards, Chris -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mnptl at sonmedia.com Tue Nov 2 20:11:11 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 21:11:11 -0500 (EST) Subject: [AccessD] "ApplyFilter" hassles Message-ID: <36008.10.235.219.133.1099447871.webmail@10.235.219.133> Using Access 2002 ? but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I?m busy developing it. I copied the app across to the target machine ? which uses Access 2000 ? and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message if it weren?t for the fact that I?m not using the ApplyFilter action ? ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? From handyman at actcom.co.il Tue Nov 2 21:12:50 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 03 Nov 2004 05:12:50 +0200 Subject: [AccessD] Caller ID and Access In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B54C5@stekelbes.ithelps.l ocal> Message-ID: <5.1.0.14.2.20041103050915.03b0b080@pop5.actcom.net.il> I use a dsl line, but have a separate modem for the phone line. I tried out the callaudit program from Mountain Systems, and it seems to have all the features I need. I just have to work on integrating it with my appliaction. I would have preferred to put this straight into my application, but why reinvent the wheel :) Thanks gm At 10:12 PM, 11/2/2004 +0100, you wrote: >If you have ISDN you gonna need a ISDN card with CAPI support. >There is some VB code out there to use CAPI in access. >I have such an Access DB that use a CAPI control for wich the VB code >was available. > >Dont know the website anymore, it was several years ago. > >This only works with ISDN and a CAPI supported card like Eicon > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >handyman at actcom.co.il >Sent: Tuesday, November 02, 2004 6:08 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Caller ID and Access > >Thanks! > >This program from Mountain Systems seems to do a lot of the stuff I >want. >Since it stores all information in an Access database, I can just >integrate it with my database with some work. > >Thanks again! > >gm > > At 11:00 AM, 11/1/2004 -0800, you wrote: > > From a few years back > >You will have to use TAPI, your modem need's to support caller ID Ughh, > > >you are in Italy so you may have to check the format of caller id North > > >America had half a dozen standards from the various Telco's in Mid 90's > > >It was a mess. > >It is essentially about 55 bytes of data being sent between the first > >and second ring of the phone It can be more data, there are a couple > >of formats some included the callers name and blocking info in addition > > >to the number. > >I can't remember if there is now an established ISO standard I did this > > >back in 99. > > > >What I would do is try the trial version of Mountain Sys on your > >telephone system and modem It is only $15 a client, but you could roll > >your own code via Tapi after getting a format from your Telco but maybe > > >they have standardized format by now in Italy. > > > > Companies that seem to handle callerid connections to Access. > > > > Mountain Systems http://www.mtnsys.com > > > > CallAudit Software has sample Access 97 & 95 database with > > trial software that connects thru DDE. > > > > There are a lot of others. > > -------------------------------------------------------------------- > > From Mountain System FAQ buried in there > > > >How to Test a MODEM for Caller ID Support Caveats. > > > >Necessary equipment > > > > * Caller ID Service From your local telephone company > > * A Voice MODEM or hardware device that supports Caller ID > > > > > > Just about every MODEM disables Caller ID as the default. > > > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > > Caller ID. > > If Caller ID is not working, you will only see the word RING for > > each incoming ring. > > > > The most common result, when Caller ID data works, is the following: > > > > RING > > > > DATE = xxxxx > > > > TIME = xxxx > > > > NMBR = xxxxxxxxx > > > > NAME = xxxxxxxx > > > > RING > > > > RING … > > > > There are other formats as well. The key point is that other data > > generally appears between the first and second rings. > > > > Some telephone companies, especially in Canada, ship Caller ID data >in > > different formats, Check the software handles this. > > > > TAPI support for Caller ID was added after Windows 95 was released. > > Microsoft has an updated version of UniModemV on their Web page that > > > includes Caller ID support. The .INF file for your MODEM also needs to > > > modified to take advantage of this support, and some modems do not > > yet have this capability. > > > > Windows NT 3.X does not include any support for TAPI. Although > >Windows > > NT 4.0 does. > >handyman at actcom.co.il wrote: > > > >>Hi, > >> > >>I'm interested in somehow retrieving a CallerID number from my modem, > >>and then displaying the caller's information(taken from my database) > >>on screen. Has anyone ever done anything like this, or can point me > >>in the right direction > >> > >>Thanks, > >> > >>Gershon Markowitz > >>mailto:Handyman at actcom.co.il > > > >-- > >Marty Connelly > >Victoria, B.C. > >Canada > > > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From accessd667 at yahoo.com Wed Nov 3 01:39:20 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 23:39:20 -0800 (PST) Subject: [AccessD] CheckDate? In-Reply-To: <17619718283.20041102141952@cactus.dk> Message-ID: <20041103073920.69473.qmail@web61106.mail.yahoo.com> Doh! I tested the function with 29 februari 2004......however 2004 is a schrikkeljaar :-) what's the English word for it?? Thanx! Gustav Brock wrote: Hi Sander > However, I added some extra checks to rule out 'impossible dates' > like 29,30 or 31 februari, 31 november, etc. Well, that's the point - IsDate() checks that as well! Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From Chris.Foote at uk.thalesgroup.com Wed Nov 3 02:21:56 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 3 Nov 2004 08:21:56 -0000 Subject: [AccessD] CheckDate? Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C434@ntscxch1.int.rdel.co.uk> I think the English (UK version) is leap year! 366 days rather than 365 right? Regards Chris Foote > -----Original Message----- > From: S D [mailto:accessd667 at yahoo.com] > Sent: Wednesday, November 03, 2004 7:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CheckDate? > > > Doh! I tested the function with 29 februari 2004......however > 2004 is a schrikkeljaar :-) what's the English word for it?? > Thanx! > > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Wed Nov 3 03:34:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 3 Nov 2004 10:34:27 +0100 Subject: [AccessD] Time Synchronization In-Reply-To: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> References: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> Message-ID: <766737608.20041103103427@cactus.dk> Hi Mark You can use an ActiveX control for this: http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ "Synchronize your client machine or just the software itself by retrieving the highly accurate time from time servers [..] This is accurate to the millisecond range so a large use is for Timestamping of information independent of the local CPU clock." Or use the winsock ocx. Here's some VB code you probably can adapt: http://www.freevbcode.com/ShowCode.asp?ID=1594 /gustav > Date: 2004-11-02 18:39 > Does anyone know of any VBA code to be placed within an Access application > that can easily poll an Internet-based time server, and return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > Thanks, > Mark Naud? From Paul.Rogers at SummitMedia.co.uk Wed Nov 3 05:11:32 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 3 Nov 2004 11:11:32 -0000 Subject: [AccessD] SQL Tables vs. Access Tables Message-ID: Thanks, Arthur, that's helped me too. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 02 November 2004 18:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Tables vs. Access Tables Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > I would suggest the following: 1. Design it in Access, where you're comfortable. Then use the upsizing wizard to move it to SS when you're ready. Make sure that every ... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.781 / Virus Database: 527 - Release Date: 21/10/2004 From Chris.Foote at uk.thalesgroup.com Wed Nov 3 05:15:56 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 3 Nov 2004 11:15:56 -0000 Subject: [AccessD] Time Synchronization Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C436@ntscxch1.int.rdel.co.uk> Fair enough Mark! Looks like Gustav has the answer though! Good luck, please let me/us know how you get on. Best regards! Chris Foote > -----Original Message----- > From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] > Sent: Tuesday, November 02, 2004 8:21 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Time Synchronization > > > Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, > that could take months! I'm currently assisting a > pharmaceutical company > with ensuring that they meet all FDA regulations, especially those > concerning electronic records. > > The concept of handling their time synchronization in a > centralized way is > somewhat new, and will have to go up the chain of command to > head office, > mulled over, a policy put in place, local IT procedures > created, and then > the technical controls instituted... a very long process. > > I was hoping that there was something similar to: > > command.com /c net time \\ /set /y > > that could use for synchronizing the local machine's time to > a "standard" > clock available on the Internet, such as NIST. I tried the > command above > with: > > command.com /c net time \\129.6.15.28 /set /y > > ... (which is one of the NIST time server IP addresses) but with no > success. It CAN be used for synchronizing with the back-end > server, but I > was hoping for something more thorough! > > Let me know if you know of any other way. > > Thanks, > > Mark > > -----Original Message----- > From: "Foote, Chris" > Subject: RE: [AccessD] Time Synchronization > > Hi Mark! > > Would it not be easier to synch the clock on the host machine > with a NTP > server and then get that via Date() Time() etc? > > Or does the time function need to be totally encapsulated in > the Access app? > > Regards! > Chris Foote From JHewson at karta.com Wed Nov 3 07:18:24 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 3 Nov 2004 07:18:24 -0600 Subject: [AccessD] "ApplyFilter" hassles Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6E@karta-exc-int.Karta.com> Not sure if this will help... When ever I modify an A2K file (except data entry) using AXP, it never seems to work correctly. When developing in A2K, in my experience, you must use A2K. My suggestion is to open the file in A2K, make a few minor changes, then save it to see if that corrects the problem. If not, import all objects into a new container. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of mnptl at sonmedia.com Sent: Tuesday, November 02, 2004 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Nov 3 08:36:44 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 06:36:44 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <200411022154.iA2LsDXH006088@cooper.uws.edu.au> Message-ID: <20041103143644.16433.qmail@web20424.mail.yahoo.com> Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From JColby at dispec.com Wed Nov 3 09:22:48 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 10:22:48 -0500 Subject: [AccessD] What is App.hInstance in Access Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94D@DISABILITYINS01> In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, November 03, 2004 4:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Time Synchronization Hi Mark You can use an ActiveX control for this: http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ "Synchronize your client machine or just the software itself by retrieving the highly accurate time from time servers [..] This is accurate to the millisecond range so a large use is for Timestamping of information independent of the local CPU clock." Or use the winsock ocx. Here's some VB code you probably can adapt: http://www.freevbcode.com/ShowCode.asp?ID=1594 /gustav > Date: 2004-11-02 18:39 > Does anyone know of any VBA code to be placed within an Access application > that can easily poll an Internet-based time server, and return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > Thanks, > Mark Naud? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Nov 3 09:21:57 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 3 Nov 2004 10:21:57 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AABD@goexchange2.pghcorning.com> Just a thought, I would think you could put code in the unload or close event of the report to prompt the user if they want to print the report. If they select yes, then the report prints to their default printer. If that is not feasible to have them only print to their default printer, you can programmatically simulate the printer setup that is available in the file-->Print option. To do this I might use the form and code from Microsoft's demo which is on the following link to give you some ideas or a even a fast head start.. I just happened to be looking for some ideas on "change printer from VBA" and came across this page on Microsoft's site which might give you some options on the close event of the report.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k2/ht ml/ODC_acc10_Printers.asp Keep us posted if it works out for you or if it even sounds like it could work, Rich -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 9:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From CMackin at quiznos.com Wed Nov 3 09:25:16 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Wed, 3 Nov 2004 08:25:16 -0700 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Nov 3 10:29:55 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 08:29:55 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: Message-ID: <20041103162955.94164.qmail@web20428.mail.yahoo.com> Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From cfoust at infostatsystems.com Wed Nov 3 10:30:06 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 08:30:06 -0800 Subject: [AccessD] "ApplyFilter" hassles Message-ID: I think that depends on what you do with it. I normally work in 2002 and have never had a problem running the app in 2000 unless I used XP-specific objects, etc., in my code. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Wednesday, November 03, 2004 5:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] "ApplyFilter" hassles Not sure if this will help... When ever I modify an A2K file (except data entry) using AXP, it never seems to work correctly. When developing in A2K, in my experience, you must use A2K. My suggestion is to open the file in A2K, make a few minor changes, then save it to see if that corrects the problem. If not, import all objects into a new container. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of mnptl at sonmedia.com Sent: Tuesday, November 02, 2004 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 3 10:33:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 08:33:19 -0800 Subject: [AccessD] "ApplyFilter" hassles Message-ID: I don't understand why you're filtering the subforms that way instead of using the master and child links. That would eliminate the "filter" aspect entirely. Charlotte Foust -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Tuesday, November 02, 2004 6:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Wed Nov 3 10:41:55 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 11:41:55 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Nov 3 11:05:38 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 3 Nov 2004 11:05:38 -0600 Subject: [AccessD] What is App.hInstance in Access Message-ID: <100F91B31300334B89EC531C9DCB0865318D88@tccexch01.tappeconstruction.net> No, that parameter refers to the parent instance handle, not the window handle. However, according to MSDN, this value is ignored in Windows NT/2000/XP, so you could just put 0& in its place. If you wish to cater to the elite Windows 95/98/ME crowd, you need to use the following code to get the Instance handle from the Application window: Private Const GWL_HINSTANCE = (-6) Private Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long GetWindowLong(hWndAccessApp, GWL_HINSTANCE) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Wednesday, November 03, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What is App.hInstance in Access In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Wed Nov 3 11:13:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 09:13:39 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Isn't that what OT is for? Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 03, 2004 8:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 3 11:15:09 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 03 Nov 2004 09:15:09 -0800 Subject: [AccessD] What is App.hInstance in Access References: <05C61C52D7CAD211A7830008C7DF6F10CBF94D@DISABILITYINS01> Message-ID: <4189121D.1050202@shaw.ca> If you want the Access Application window handle 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1 Here is some code I use to get Task List handles Maybe you can get something out of it. '_______________________________________________________ Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Private Declare Function GetWindow Lib "user32" _ (ByVal hwnd As Long, ByVal wCmd As Long) As Long Private Declare Function GetParent Lib "user32" _ (ByVal hwnd As Long) As Long Private Declare Function GetWindowTextLength Lib _ "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function GetWindowText Lib "user32" _ Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal _ lpString As String, ByVal cch As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" _ (ByVal hwnd As Long) As Long 'Determining Which Tasks Are Running 'With the Microsoft Windows operating system, 'you can run any number of applications simultaneously. 'Occasionally, you may need to determine which tasks are currently being 'run. 'This can be accomplished by using several Windows application programming 'interface '(API) functions. 'To find the names of all currently executing tasks, 'you must first determine the handle of the window that is currently 'at the top of the z-order. This, of course, would be the window of your 'own Microsoft Visual Basic application. 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1. 'The second argument of the GetWindow function specifies the window 'you want to retrieve the handle for. 'This argument can have one of the following values: ' GW_CHILD Retrieve the handle for the child window. ' GW_HWNDFIRST Retrieve the handle for the window at the top of the z- 'order. ' GW_HWNDLAST Retrieve the handle for the window at the bottom of the z- 'order. ' GW_HWNDNEXT Retrieve the handle of the window below the specified window 'in the z-order. ' GW_HWNDPREV Retrieve the handle of the window above the specified window 'in the z-order. ' GW_OWNER Retrieve the handle of the window that owns the specified 'window, if any. 'After you have retrieved the application's window handle, 'you can use the Windows API GetParent function to retrieve this window's 'child window handle. Next, you call the Windows API GetWindowText and 'GetWindowTextLength functions to retrieve the text in the window's title 'bar 'and the length of this text, respectively. You can then use the text string 'in your own application. For example, you can save the title bar text 'to a List Box control. 'All of the above steps are repeated until you have processed all running 'tasks. 'You know that you have gone through each task when the current window is 'that'of your own application. Function LoadTaskList() As String Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim Parent As Long Dim parent_hwnd As Long Dim strMyTaskList As String strMyTaskList = " Task List " & vbCrLf ' This line below works from VB form 'CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' get Parent Window Handle parent_hwnd = FindWindow(vbNullString, "Microsoft Access") If parent_hwnd = 0 Then MsgBox "Access Not Found" Exit Function End If 'SetFocusAPI parent_hwnd CurrWnd = parent_hwnd While CurrWnd <> 0 Parent = GetParent(CurrWnd) Length = GetWindowTextLength(CurrWnd) TaskName = Space$(Length + 1) Length = GetWindowText(CurrWnd, TaskName, Length + 1) TaskName = Left$(TaskName, Len(TaskName) - 1) If Length > 0 Then 'If TaskName <> Me.Caption Then 'If TaskName <> "Microsoft Access" Then 'List1.AddItem TaskName strMyTaskList = strMyTaskList & TaskName & vbCrLf Debug.Print TaskName 'End If End If CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend LoadTaskList = strMyTaskList End Function Colby, John wrote: >In looking over the time sync stuff I found a class and module to replace >the winsock OCX control. It has a call: > > p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, >0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) > >which fails on App.hInstance. I'm assuming that this is a handle to the >application window. Is there an equivelent in VBA? I think I solved that >one by: > > p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, >0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) > >However I am now getting a compile error on: > > m_lngResolveMessage = RegisterWindowMessage(App.EXEName & >".ResolveMessage") > >There is no apparent equivelent property in the Application object. Does >anyone know what I would use here? > >John W. Colby >The DIS Database Guy > > >-----Original Message----- >From: Gustav Brock [mailto:gustav at cactus.dk] >Sent: Wednesday, November 03, 2004 4:34 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Time Synchronization > > >Hi Mark > >You can use an ActiveX control for this: > >http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ > >"Synchronize your client machine or just the software itself by >retrieving the highly accurate time from time servers [..] This is >accurate to the millisecond range so a large use is for Timestamping >of information independent of the local CPU clock." > >Or use the winsock ocx. Here's some VB code you probably can adapt: > >http://www.freevbcode.com/ShowCode.asp?ID=1594 > >/gustav > > > > >>Date: 2004-11-02 18:39 >> >> > > > >>Does anyone know of any VBA code to be placed within an Access application >>that can easily poll an Internet-based time server, and return that time >>to a variable? Searching through the archives hasn't come up with >>naything ... yet ... >> >> > > > >>Thanks, >> >> > > > >>Mark Naud? >> >> > > > -- Marty Connelly Victoria, B.C. Canada From JColby at dispec.com Wed Nov 3 11:26:52 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 12:26:52 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF950@DISABILITYINS01> LOL. Maybe. I stay away from that place! ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 03, 2004 12:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Isn't that what OT is for? Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 03, 2004 8:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 3 11:26:22 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 09:26:22 -0800 Subject: [AccessD] What is App.hInstance in Access Message-ID: >>the elite Windows 95/98/ME crowd LOL ... And it isn't even Friday yet! Charlotte Foust -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, November 03, 2004 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What is App.hInstance in Access No, that parameter refers to the parent instance handle, not the window handle. However, according to MSDN, this value is ignored in Windows NT/2000/XP, so you could just put 0& in its place. If you wish to cater to the elite Windows 95/98/ME crowd, you need to use the following code to get the Instance handle from the Application window: Private Const GWL_HINSTANCE = (-6) Private Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long GetWindowLong(hWndAccessApp, GWL_HINSTANCE) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Wednesday, November 03, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What is App.hInstance in Access In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy ------------------------------------------------------------------------ -------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Jdemarco at hudsonhealthplan.org Wed Nov 3 13:02:09 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 Nov 2004 14:02:09 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869E7@TTNEXCHCL2.hshhp.com> List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY *********************************************************************************** "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 Wed Nov 3 14:25:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 3 Nov 2004 21:25:10 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54D8@stekelbes.ithelps.local> I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 cfoust at infostatsystems.com Wed Nov 3 14:27:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 12:27:17 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 prodevmg at yahoo.com Wed Nov 3 14:31:37 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 12:31:37 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) In-Reply-To: Message-ID: <20041103203137.38955.qmail@web20428.mail.yahoo.com> Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From CMackin at quiznos.com Wed Nov 3 14:43:19 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Wed, 3 Nov 2004 13:43:19 -0700 Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) Message-ID: Well now that I know that certain favors are off the table I'm not so sure... Here's one way to do it: 1) Create a global variable called something like gblnAllowAppClose and set it to false 2) Open a form as hidden when you open the app, and in the Unload event of the form you have something like" Cancel = Not gblnAllowAppClose 3) If you never set the value of gblnAllowAppClose then nobody can ever exit the app via normal commands so on your Exit button. before you quit the app have something like: gblnAllowAppClose = True Application.Quit 4) In the unload event of the form you are currently stopping the app from closing and you know that if that Event is called with gblnAllowAppClose = False then someone has tried to exit the app via the "X", so you can drop your code there for how you want to close the current report. I'm sure someone on the list has a more detailed account of how to do it if this isn't enough. Good Luck, Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 1:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 3 14:44:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 12:44:05 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 JRojas at tnco-inc.com Wed Nov 3 15:02:29 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 3 Nov 2004 16:02:29 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Hi All, If I have data similar to: JOE001 JOE002 JOE003 JOE005 JOE006 Is there a way, using just SQL, to return the next available number in the sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had already existed? Or do I have to use code to iterate through the records to check for "holes"? 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 DWUTKA at marlow.com Wed Nov 3 15:12:47 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 3 Nov 2004 15:12:47 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) Message-ID: <123701F54509D9119A4F00D0B747349016D05A@main2.marlow.com> Did you search my archives? (http://www.wolfwares.com/AccessD) They are missing the last month or two (long story), but they go back a few years. Drew -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 2:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Nov 3 15:40:06 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 03 Nov 2004 16:40:06 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> Message-ID: <41895036.2050907@rogers.com> Colby, John wrote: >Hmm... do we need a Lonely Hearts list? ;-) > >John W. Colby >The DIS Database Guy > > > Well if so I am seriously into one-legged left-handed bisex biker chicks with programming skills. Anyone suitable please whip me and beat me and I'll write code for $1 an hour. Oh I forgot... must have an Iroquois cut. From artful at rogers.com Wed Nov 3 15:44:14 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 03 Nov 2004 16:44:14 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <4189512E.4000701@rogers.com> Joe Rojas wrote: >Hi All, >If I have data similar to: >JOE001 >JOE002 >JOE003 >JOE005 >JOE006 > >Is there a way, using just SQL, to return the next available number in the >sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had >already existed? >Or do I have to use code to iterate through the records to check for >"holes"? > >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. > > IMHO something is wrong with this design. You are packing two columns into one and expecting the database to act intelligently: unfair. If you really need this column, consider adding two more columns, one with each fragment and then concatenating the result in the column you have. The problem becomes much simpler with this approach. But back to the start. Why are you concatenating two column values into one? A. From prodevmg at yahoo.com Wed Nov 3 15:44:38 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 13:44:38 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) In-Reply-To: Message-ID: <20041103214438.93495.qmail@web20426.mail.yahoo.com> You get a star. * That did it. I have now have a professional looking application that is fully functional. "Mackin, Christopher" wrote: Well now that I know that certain favors are off the table I'm not so sure... Here's one way to do it: 1) Create a global variable called something like gblnAllowAppClose and set it to false 2) Open a form as hidden when you open the app, and in the Unload event of the form you have something like" Cancel = Not gblnAllowAppClose 3) If you never set the value of gblnAllowAppClose then nobody can ever exit the app via normal commands so on your Exit button. before you quit the app have something like: gblnAllowAppClose = True Application.Quit 4) In the unload event of the form you are currently stopping the app from closing and you know that if that Event is called with gblnAllowAppClose = False then someone has tried to exit the app via the "X", so you can drop your code there for how you want to close the current report. I'm sure someone on the list has a more detailed account of how to do it if this isn't enough. Good Luck, Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 1:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From d.dick at uws.edu.au Wed Nov 3 16:13:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 4 Nov 2004 09:13:01 +1100 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <20041103143644.16433.qmail@web20424.mail.yahoo.com> Message-ID: <200411032213.iA3MD9XH017636@cooper.uws.edu.au> Hi Lonnie I have a switchboard type form open all the time It is hidden or not hidden depending on where the user has gone When reports are open and the MDI is displayed I have it hidden In the On close of the Switchboard the User is prompted with a msgbox Are you sure you want to close and quit the <> application? (VBYESNO) That way if they click the big X not the little x in the reports area It (obviously) attempts to close the app, thus attempts to close the Switchboard and thus the MsgBox Confirming quitting comes up. After show or explaining it once they realise they have clicked the bigX By mistake and they answer no the to MsgBox and everything's is cool Simple There are heaps of ways of doing this. Have a look in the archives or contact me off list and "I'll show you mine" ;-))) See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, 4 November 2004 1:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 3 16:20:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 14:20:40 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Arthur! I didn't know you CARED!! LOL Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, November 03, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling all Gurus - Hide Access Window Colby, John wrote: >Hmm... do we need a Lonely Hearts list? ;-) > >John W. Colby >The DIS Database Guy > > > Well if so I am seriously into one-legged left-handed bisex biker chicks with programming skills. Anyone suitable please whip me and beat me and I'll write code for $1 an hour. Oh I forgot... must have an Iroquois cut. -- _______________________________________________ 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 Wed Nov 3 16:22:53 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 4 Nov 2004 09:22:53 +1100 Subject: [AccessD] A2K3 Bloating In-Reply-To: Message-ID: <200411032223.iA3MN2XH027861@cooper.uws.edu.au> Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 Erwin.Craps at ithelps.be Wed Nov 3 18:27:19 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Nov 2004 01:27:19 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54DB@stekelbes.ithelps.local> Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 cfoust at infostatsystems.com Wed Nov 3 19:32:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 17:32:35 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 KP at sdsonline.net Wed Nov 3 21:19:20 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:19:20 +1100 Subject: [AccessD] Cannot delete Missing references Message-ID: <000a01c4c21d$13ae0bb0$6401a8c0@user> Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath From jwcolby at colbyconsulting.com Wed Nov 3 21:36:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 03 Nov 2004 22:36:24 -0500 Subject: [AccessD] Cannot delete Missing references In-Reply-To: <000a01c4c21d$13ae0bb0$6401a8c0@user> Message-ID: <002901c4c21f$75c5f9a0$e8dafea9@ColbyM6805> When you say burned a copy do you mean to CD? Is the mdb file read only now? Check with windows explorer and set back to r/w if it is read only. When copying from CD to disk the file is copied Read Only. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, November 03, 2004 10:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Cannot delete Missing references Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Wed Nov 3 21:49:25 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:49:25 +1100 Subject: [AccessD] Cannot delete Missing references References: <002901c4c21f$75c5f9a0$e8dafea9@ColbyM6805> Message-ID: <000b01c4c221$476ef5a0$6401a8c0@user> Thanks John - no - I checked that.....I have also now tried a couple of other things - I have tried to import all objects into a clean new mdb - it will not import the forms because of this refs prob, - I have run Jetcomp and created a new version - but it also has the same problem. The references in problem are to Frontpage - I can't believe that I can't just remove them and create them again.... ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Thursday, November 04, 2004 2:36 PM Subject: RE: [AccessD] Cannot delete Missing references When you say burned a copy do you mean to CD? Is the mdb file read only now? Check with windows explorer and set back to r/w if it is read only. When copying from CD to disk the file is copied Read Only. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, November 03, 2004 10:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Cannot delete Missing references Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Nov 3 21:52:50 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:52:50 +1100 Subject: [AccessD] OT: Online Access groups References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> Message-ID: <001a01c4c221$c14f3740$6401a8c0@user> Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Sent: Wednesday, November 03, 2004 7:10 AM Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Wed Nov 3 22:17:19 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 3 Nov 2004 23:17:19 -0500 Subject: [AccessD] OT: Online Access groups References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> <001a01c4c221$c14f3740$6401a8c0@user> Message-ID: <03e601c4c225$2eed7930$6401a8c0@default> ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 10:52 PM Subject: [AccessD] OT: Online Access groups Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Now hold on there, Kath, let's see ... um, hm ... try this: Application.SaveAsText acForm, "FormName", "DesiredPath" I'm thinking that if there's a FrontPage control on this form that you can just delete it from the text file, delete the form, remove the bad ref, and then import that file right back in as a form. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com From Erwin.Craps at ithelps.be Thu Nov 4 00:53:45 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Nov 2004 07:53:45 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54DC@stekelbes.ithelps.local> You can set the default DB type for new database between 200O or 2002/2003 in the option menu. On my computer it is set tp 2002/2003, it is posible that I changed it to 2002/2003 but I don't see the point having A2K3 and creating by default new databases in 2000 format, seems pointless to me. I'll check on my other computers, if I did changed that option, than probably not on the those. You can work and modify 2000 dababase files without converting in Access 2003. Maybe the bloat is still present in A2K3 when using A2K database. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 2:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 andy at minstersystems.co.uk Thu Nov 4 01:25:59 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 07:25:59 -0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <000401c4c23f$88a4b3c0$b274d0d5@minster33c3r25> Joe The only way I can come up with is if you created a table of all possible numbers, left joined that to this table, had a WHERE statement that limited the selection to records where the key on the joined table (yours) was null (ie no match) and returned the TOP 1 of those. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas > Sent: 03 November 2004 21:02 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Checking for "holes" in a sequence using SQL > > > Hi All, > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > > Is there a way, using just SQL, to return the next available > number in the sequence, JOE004, and be flexible enough to > return JOE007 if JOE004 had already existed? Or do I have to > use code to iterate through the records to check for "holes"? > > 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 gustav at cactus.dk Thu Nov 4 03:52:11 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 10:52:11 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <896943354.20041104105211@cactus.dk> Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav From cyx5 at cdc.gov Thu Nov 4 06:12:51 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 07:12:51 -0500 Subject: [AccessD] .MDW ByPass Surgery Message-ID: My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. From adtp at touchtelindia.net Thu Nov 4 06:21:23 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 4 Nov 2004 17:51:23 +0530 Subject: [AccessD] Checking for "holes" in a sequence using SQL References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> <896943354.20041104105211@cactus.dk> Message-ID: <006501c4c268$dc8c5c30$7d1865cb@winxp> Excellent - Gustav! Beautiful SQL. A.D.Tejpal -------------- ----- Original Message ----- From: Gustav Brock To: Access Developers discussion and problem solving Sent: Thursday, November 04, 2004 15:22 Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav From mgauk at btconnect.com Thu Nov 4 06:26:56 2004 From: mgauk at btconnect.com (MG) Date: Thu, 4 Nov 2004 12:26:56 -0000 Subject: [AccessD] .MDW ByPass Surgery In-Reply-To: Message-ID: <200411041228.iA4CS3L07803@databaseadvisors.com> Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 From mark.breen at gmail.com Thu Nov 4 07:18:47 2004 From: mark.breen at gmail.com (Mark Breen) Date: Thu, 4 Nov 2004 13:18:47 +0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <006501c4c268$dc8c5c30$7d1865cb@winxp> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> <896943354.20041104105211@cactus.dk> <006501c4c268$dc8c5c30$7d1865cb@winxp> Message-ID: <26a96cce041104051829a2a584@mail.gmail.com> Hello Gustav, Really beautiful. Compliments to you. Of course when we read the SQL now, it is simple, but not so simple when we were the other side of the fence. I love to hand write my SQL when practical. Mark On Thu, 4 Nov 2004 17:51:23 +0530, A.D.Tejpal wrote: > Excellent - Gustav! Beautiful SQL. > > A.D.Tejpal > -------------- > > > > ----- Original Message ----- > From: Gustav Brock > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 15:22 > Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL > > Hi Joe > > > If I have data similar to: > > JOE001 > > JOE002 > > JOE003 > > JOE005 > > JOE006 > > > Is there a way, using just SQL, to return the next available number in the > > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > > already existed? > > Or do I have to use code to iterate through the records to check for > > "holes"? > > Except for the indication of some malfunctioning during the design > state as already pointed out by others, there is: > > > > SELECT TOP 1 > TextID, > Left(TextID, Len(TextID)-3) & > Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID > FROM > tblID > WHERE > (Nz( > (Select Top 1 > Val(Right(TextID,3)) > From > tblID As T > Where > T.TextID > tblID.TextID) > -Val(Right([TextID],3)), > 2)>1) > ORDER BY > tblID.TextID; > > > > All the "3"s count for the length of the numeric right part of the > textid. > Note the "magic 2" in Nz() which cares for the return of the last > textid if no "holes" exist. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prodevmg at yahoo.com Thu Nov 4 07:20:16 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 4 Nov 2004 05:20:16 -0800 (PST) Subject: [AccessD] OT: Online Access groups In-Reply-To: <001a01c4c221$c14f3740$6401a8c0@user> Message-ID: <20041104132016.35417.qmail@web20424.mail.yahoo.com> I try not to cross post much. This and AccessDevelopers are two that I find most helpful. Because I was desperate and needed a solution fast, I solicited the help of every forum I could to tug at every available guru I could. Kath Pelletti wrote:Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Sent: Wednesday, November 03, 2004 7:10 AM Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From andy at minstersystems.co.uk Thu Nov 4 06:24:56 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 13:24:56 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <20041104132453.C747F25490F@smtp.nildram.co.uk> Gustav, I'm in awe!!! But I don't fully understand how it works. What does the: Nz((Select Top 1 Val(Right(TextID,3)) return, and how does checking it being >1 spot the gaps? -- 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] Checking for "holes" in a sequence using SQL Date: 04/11/04 12:23 > > Excellent - Gustav! Beautiful SQL. > > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Gustav Brock > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 15:22 > Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL > > > Hi Joe > > > If I have data similar to: > > JOE001 > > JOE002 > > JOE003 > > JOE005 > > JOE006 > > > Is there a way, using just SQL, to return the next available number in the > > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > > already existed? > > Or do I have to use code to iterate through the records to check for > > "holes"? > > Except for the indication of some malfunctioning during the design > state as already pointed out by others, there is: > > <SQL> > > SELECT TOP 1 > TextID, > Left(TextID, Len(TextID)-3) & > Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID > FROM > tblID > WHERE > (Nz( > (Select Top 1 > Val(Right(TextID,3)) > From > tblID As T > Where > T.TextID > tblID.TextID) > -Val(Right([TextID],3)), > 2)>1) > ORDER BY > tblID.TextID; > > </SQL> > > All the "3"s count for the length of the numeric right part of the > textid. > Note the "magic 2" in Nz() which cares for the return of the last > textid if no "holes" exist. > > /gustav > > -- > _______________________________________________ > 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 cyx5 at cdc.gov Thu Nov 4 07:41:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 08:41:47 -0500 Subject: [AccessD] .MDW ByPass Surgery - SUCCESSFUL Message-ID: What a sigh of relief. Thank you so much. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG Sent: Thursday, November 04, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .MDW ByPass Surgery Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Nov 4 08:42:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 15:42:37 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <20041104132453.C747F25490F@smtp.nildram.co.uk> References: <20041104132453.C747F25490F@smtp.nildram.co.uk> Message-ID: <8724369731.20041104154237@cactus.dk> Hi Andy, Mark and A.D > Gustav, I'm in awe!!! But I don't fully understand how it works. What does > the: > Nz((Select Top 1 Val(Right(TextID,3)) > return, and how does checking it being >1 spot the gaps? Thanks! It uses the numeric part of Joe's textid to find the next higher id and the difference between these. This difference is, of course, 1 where no holes exist. If a hole is present, the difference will be 2 or larger. However, if no holes are present, no difference is found and it is Null and the expression with (Select ..)-Val(..) will be Null as well. This is caught by Nz() here: Nz((Select ..)-Val(Right([TextID],3)),2) which returns 2 for the "missing" hole at the last textid. Finally textid is sorted and Top 1 is added to find the first hole and only this. /gustav From andy at minstersystems.co.uk Thu Nov 4 08:21:01 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 15:21:01 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <20041104152057.BC43E254F24@smtp.nildram.co.uk> I get it, but I wouldn't have dreamed that up in a million years. Hats off to you Gustav. -- 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] Checking for "holes" in a sequence using SQL Date: 04/11/04 14:49 > > Hi Andy, Mark and A.D > > > Gustav, I'm in awe!!! But I don't fully understand how it works. What does > > the: > > > Nz((Select Top 1 Val(Right(TextID,3)) > > > return, and how does checking it being >1 spot the gaps? > > Thanks! > > It uses the numeric part of Joe's textid to find the next higher id > and the difference between these. This difference is, of course, 1 > where no holes exist. If a hole is present, the difference will be 2 > or larger. > However, if no holes are present, no difference is found and it is > Null and the expression with (Select ..)-Val(..) will be Null as well. > This is caught by Nz() here: > > Nz((Select ..)-Val(Right([TextID],3)),2) > > which returns 2 for the "missing" hole at the last textid. > Finally textid is sorted and Top 1 is added to find the first hole > and only this. > > /gustav > > -- > _______________________________________________ > 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 william.thompson1 at att.net Thu Nov 4 09:48:58 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 4 Nov 2004 07:48:58 -0800 Subject: [AccessD] Access FE Field Names with Spaces - in SQL Server BE In-Reply-To: <20041104152057.BC43E254F24@smtp.nildram.co.uk> Message-ID: <200411041549.iA4Fn5L11490@databaseadvisors.com> Has it been anyone's experience either in Code, Form, Class or Procedure where field names with spaces in a SQL Server backend caused a breakage, with no work-around? My primary concern is with unbound forms and passing openargs to a popup form. Assuming no view is used to translate or alter the field name? I assume that all my field references will have to be altered to "[" & fieldname & "]" - even the fields that already have bracketed table definitions, like [Field With Spaces] in SQL Server. Bill Thompson From cyx5 at cdc.gov Thu Nov 4 10:05:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 11:05:10 -0500 Subject: [AccessD] Access FE Field Names with Spaces - in SQL Server BE Message-ID: I have not had a problem, and the psycho that created this SQL backend used spaces, # signs, ? Marks, \ backslashes and asterisks in the field names. I have had to bracket all references to the field names and will get around to changing them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Thompson Sent: Thursday, November 04, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access FE Field Names with Spaces - in SQL Server BE Has it been anyone's experience either in Code, Form, Class or Procedure where field names with spaces in a SQL Server backend caused a breakage, with no work-around? My primary concern is with unbound forms and passing openargs to a popup form. Assuming no view is used to translate or alter the field name? I assume that all my field references will have to be altered to "[" & fieldname & "]" - even the fields that already have bracketed table definitions, like [Field With Spaces] in SQL Server. Bill Thompson -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 4 10:14:14 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Nov 2004 08:14:14 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: The uncompressible bloat occurs in a system table that doesn't exist in the 2000 format, which is why we use that format for our data mdbs. We use the 2002 format for the front ends. As long as some of our users want to be able to use A2k or VB6 to work with the file, 2000 is the preferred data format for us. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 10:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating You can set the default DB type for new database between 200O or 2002/2003 in the option menu. On my computer it is set tp 2002/2003, it is posible that I changed it to 2002/2003 but I don't see the point having A2K3 and creating by default new databases in 2000 format, seems pointless to me. I'll check on my other computers, if I did changed that option, than probably not on the those. You can work and modify 2000 dababase files without converting in Access 2003. Maybe the bloat is still present in A2K3 when using A2K database. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 2:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 4 10:10:48 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 11:10:48 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: What would you do if the PWD is null, none assigned in the .mdw? AND... Is it OK to store the .mdw reference on a shared drive on the network instead of on an individual PCs folder? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG Sent: Thursday, November 04, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .MDW ByPass Surgery Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 -- _______________________________________________ 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 Nov 4 10:42:15 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Nov 2004 11:42:15 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2757@xlivmbx21.aig.com> With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER > max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to > open up the database and bypass this nag screen that asks for the user > name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. > Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Thu Nov 4 11:05:00 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 12:05:00 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER > max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to > open up the database and bypass this nag screen that asks for the user > name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. > Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 11:38:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 18:38:04 +0100 Subject: [AccessD] MDW ByPass Surgery, Post Op In-Reply-To: References: Message-ID: <034895887.20041104183804@cactus.dk> Hi Karen If the password is empty and you completely remove the /pwd parameter from the command line of the shortcut, the dialog will not pop up. /gustav > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > There is little point in having the MDW file on the user's machine. If you > needed to move them into a different user group you would have to visit the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain ordinary > MDB file with a different extension. As such it is subject to all the usual > corruption risks, so I should be sure to backup the file at least once every > day. > If you do get a corruption of the MDW file, usually it is enough to open it > with Access (from the File, Open menu) and run a Repair on it. > Lambert >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen >> Sent: Thursday, November 04, 2004 11:11 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] MDW ByPass Surgery, Post Op >> >> What would you do if the PWD is null, none assigned in the .mdw? AND... >> Is it OK to store the .mdw reference on a shared drive on the network >> instead of on an individual PCs folder? >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG >> Sent: Thursday, November 04, 2004 7:27 AM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] .MDW ByPass Surgery >> >> >> Try a shortcut on your desk, (watch for word wrap) viz: >> "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" >> "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" >> /USER >> max/PWD max123456789 >> >> Regards >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >> Karen >> Sent: 04 November 2004 12:13 >> To: accessd at databaseadvisors.com >> Subject: [AccessD] .MDW ByPass Surgery >> >> My database is hooked to a .mdw. During the development stage, I want >> to >> open up the database and bypass this nag screen that asks for the user >> name >> and password. I have been googling, but can't find too much. >> I would like the shortcut on my desktop to do it, I think. But at this >> point I will do just about anything to disconnect it while I am >> developing. >> Thanks, wise ones. >> -- From cfoust at infostatsystems.com Thu Nov 4 11:48:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Nov 2004 09:48:21 -0800 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: You join a workgroup, whether you realize it or not, when you open Access or when you use the workgroup administrator to join one. By default, the system.mdw on the local machine is the workgroup unless you join another one. Using a shortcut allows you to specify the workgroup on the server for that session without changing the default workgroup. That should solve your problem. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, November 04, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program > Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to open up the database and bypass this nag screen that asks for the > user name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Thu Nov 4 12:08:43 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 13:08:43 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Yeppers. I have met with management and we have decided that the custom .mdw is outdated technology for our purposes. YEAH!!! Now I just have to go point 25 users back to the system.mdw that came with their package and not worry about it. All the security we need is table level and I have cranked that down on SQL server. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 12:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op You join a workgroup, whether you realize it or not, when you open Access or when you use the workgroup administrator to join one. By default, the system.mdw on the local machine is the workgroup unless you join another one. Using a shortcut allows you to specify the workgroup on the server for that session without changing the default workgroup. That should solve your problem. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, November 04, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program > Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to open up the database and bypass this nag screen that asks for the > user name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 12:08:54 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Nov 2004 13:08:54 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2759@xlivmbx21.aig.com> When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 CMackin at quiznos.com Thu Nov 4 12:49:00 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 4 Nov 2004 11:49:00 -0700 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Alternatively, if you have a large group of users pointing to a particular .mdw on the network you can simply archive the current .mdw and copy your system.mdw into the network folder and rename it to match the currently used one. That saves having to rejoin workgroups and leaves you with the option of reverting to the old security by just replacing the file. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:09 AM To: 'Access Developers discussion and problem solving'; 'Nicholson, Karen' Subject: RE: [AccessD] MDW ByPass Surgery, Post Op When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 12:54:11 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 04 Nov 2004 12:54:11 -0600 Subject: [AccessD] Re: Calling all Gurus - Hide Access Window In-Reply-To: <200411041800.iA4I0tL32297@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041104125319.04d3fea0@pop3.highstream.net> Lonnie I think CTRL-P will do it for you. Robert At 12:00 PM 11/4/2004 -0600, you wrote: > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > Sent: Wednesday, November 03, 2004 7:10 AM > Subject: [AccessD] Calling all Gurus - Hide Access Window > > > Hello all, > > I am using the popular API code that hides the access window and just > shows a form on the desktop. (Small snippet below) > > Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As > Long) As Long > Dim dwReturn As Long > Const SW_HIDE = 0 > Const SW_SHOWNORMAL = 1 > Const SW_SHOWMINIMIZED = 2.... > > It is working fine except withe reports. I am even able to preview > reports. However, how do I print them? Has anyone worked this part out? > > I know there is an answer out there somewhere! > > Thanks in advance. From JRojas at tnco-inc.com Thu Nov 4 13:27:03 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 4 Nov 2004 14:27:03 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F84@mercury.tnco-inc.com> Arthur, I was not expecting the database to act intelligently. To be honest I was not expecting there to even be a solution to this although Gustav figured it out! I have an Access database that I used to keep track of the computers at my company. The computer naming convention that I use is TNCO###. One of the fields in the table is used for storing the computer name. If I remove a computer from our network and physical remove it from the company, I would like to be able to reuse that computer name instead of just using the next sequential number. To me I do not see it as concatenating two column values into one but I could be wrong. What do you think Arthur? JR -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, November 03, 2004 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Joe Rojas wrote: >Hi All, >If I have data similar to: >JOE001 >JOE002 >JOE003 >JOE005 >JOE006 > >Is there a way, using just SQL, to return the next available number in the >sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had >already existed? >Or do I have to use code to iterate through the records to check for >"holes"? > >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. > > IMHO something is wrong with this design. You are packing two columns into one and expecting the database to act intelligently: unfair. If you really need this column, consider adding two more columns, one with each fragment and then concatenating the result in the column you have. The problem becomes much simpler with this approach. But back to the start. Why are you concatenating two column values into one? A. -- _______________________________________________ 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 JRojas at tnco-inc.com Thu Nov 4 13:33:17 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 4 Nov 2004 14:33:17 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F85@mercury.tnco-inc.com> Wow! Thanks Gustav! Great SQL! JR -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 04, 2004 4:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav -- _______________________________________________ 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 markamatte at hotmail.com Thu Nov 4 13:37:50 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 Nov 2004 19:37:50 +0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: I also was impressed...and from looking at it...you could use the same concept to fill in missing dates in a given date range. Thanks for the direction. Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL >Date: Thu, 4 Nov 2004 15:21:01 +0100 > >I get it, but I wouldn't have dreamed that up in a million years. Hats off >to you Gustav. > >-- >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] Checking for "holes" in a sequence using SQL >Date: 04/11/04 14:49 > > > > > Hi Andy, Mark and A.D > > > > > Gustav, I'm in awe!!! But I don't fully understand how it works. >What >does > > > the: > > > > > Nz((Select Top 1 Val(Right(TextID,3)) > > > > > return, and how does checking it being >1 spot the gaps? > > > > Thanks! > > > > It uses the numeric part of Joe's textid to find the next higher id > > and the difference between these. This difference is, of course, 1 > > where no holes exist. If a hole is present, the difference will be 2 > > or larger. > > However, if no holes are present, no difference is found and it is > > Null and the expression with (Select ..)-Val(..) will be Null as well. > > This is caught by Nz() here: > > > > Nz((Select ..)-Val(Right([TextID],3)),2) > > > > which returns 2 for the "missing" hole at the last textid. > > Finally textid is sorted and Top 1 is added to find the first hole > > and only this. > > > > /gustav > > > > -- > > _______________________________________________ > > 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 cyx5 at cdc.gov Thu Nov 4 14:15:56 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 15:15:56 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Not so lucky; the .mdw is on the workstations, buried. Life is getting easier, though. I have the front end updater working and it is like a birthday party for them! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mackin, Christopher Sent: Thursday, November 04, 2004 1:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op Alternatively, if you have a large group of users pointing to a particular .mdw on the network you can simply archive the current .mdw and copy your system.mdw into the network folder and rename it to match the currently used one. That saves having to rejoin workgroups and leaves you with the option of reverting to the old security by just replacing the file. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:09 AM To: 'Access Developers discussion and problem solving'; 'Nicholson, Karen' Subject: RE: [AccessD] MDW ByPass Surgery, Post Op When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 16:23:21 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:23:21 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: <001a01c4c2bc$e524a240$6401a8c0@user> Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath From john at winhaven.net Thu Nov 4 16:25:57 2004 From: john at winhaven.net (John Bartow) Date: Thu, 4 Nov 2004 16:25:57 -0600 Subject: [AccessD] Form creep bug In-Reply-To: Message-ID: Does anyone remember any details about the bug that makes access forms creep a little bit to to the side of the screen until the close button is hidden? Was that Access or some form resizer control/method or what? John B. From CMackin at quiznos.com Thu Nov 4 16:29:43 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 4 Nov 2004 15:29:43 -0700 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Nov 4 16:36:58 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:36:58 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <003301c4c2be$cbccade0$6401a8c0@user> Chris - I checked the references on site and found none missing... ----- Original Message ----- From: Mackin, Christopher To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:29 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 16:45:26 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:45:26 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <003301c4c2be$cbccade0$6401a8c0@user> Message-ID: <00ac01c4c2c0$ae799710$6401a8c0@user> I have found that there is a difference in the order of the DAO / ADO references.... The reference to DAO in the latest release is above the ADO reference. Could this throw the error with Date()? Kath ----- Original Message ----- From: Kath Pelletti To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:36 AM Subject: Re: [AccessD] Date() not working - MDAC issue or not? Chris - I checked the references on site and found none missing... ----- Original Message ----- From: Mackin, Christopher To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:29 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Thu Nov 4 16:51:15 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 4 Nov 2004 14:51:15 -0800 Subject: [AccessD] A2K, Export to Excel Message-ID: A friend has a query, and is exporting the results to an excel file, for some reason the numeric (dollar) values are converted to string in excel (the single ' quote problem) it's easy enough to convert excel to see it as a numeric but why? thanks, -- -Francisco Pc This! pc news with out the jargon From stuart at lexacorp.com.pg Thu Nov 4 17:04:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Nov 2004 09:04:58 +1000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F84@mercury.tnco-inc.com> Message-ID: <418B423A.16918.18E65D38@lexacorp.com.pg> On 4 Nov 2004 at 14:27, Joe Rojas wrote: > Arthur, > > I was not expecting the database to act intelligently. To be honest I was > not expecting there to even be a solution to this although Gustav figured it > out! > > I have an Access database that I used to keep track of the computers at my > company. The computer naming convention that I use is TNCO###. One of the > fields in the table is used for storing the computer name. If I remove a > computer from our network and physical remove it from the company, I would > like to be able to reuse that computer name instead of just using the next > sequential number. To me I do not see it as concatenating two column values > into one but I could be wrong. What do you think Arthur? > If you *always* use the same initial characters, you could just store the numeric value in the table and display them formatted as "TNCO"000 -- Stuart From dwaters at usinternet.com Thu Nov 4 18:13:37 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 4 Nov 2004 18:13:37 -0600 Subject: [AccessD] Date() not working - MDAC issue or not? In-Reply-To: <8246256.1099611287819.JavaMail.root@sniper11.usinternet.com> Message-ID: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Nov 4 18:14:47 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:14:47 +1100 Subject: [AccessD] MDAC - more Message-ID: <017101c4c2cc$75fbf520$6401a8c0@user> Gurus - further to my client who has format() and date() no longer working - he is on Windows 2KPro, with Access 2000. I got him to run the MDAC component checker from Microsoft and it came up with MDAC version 2.5 sp 2.0. My next step would be to ask him to update his MDAC to the 2.8 version - before I do that - are there any possible disadvantages?? Thanks Kath From KP at sdsonline.net Thu Nov 4 18:23:30 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:23:30 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Message-ID: <017d01c4c2cd$ad8b5390$6401a8c0@user> That seems wise Dan - I haven't had this issue since Win98 users experienced same problem. And I am absolutely stumped how a PC which has had no changes to the OS or applications can suddenly get errors when I install a new mdb. In other words, last week their previous version of the same mdb gave them no errors with these same functions. Suddenly they start appearing and cause a critical process to fall over. I think that I will pull out all references to Date() and use of Format() functions - but that's tricky to do today. Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 18:24:57 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:24:57 +1100 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com><001a01c4c221$c14f3740$6401a8c0@user> <03e601c4c225$2eed7930$6401a8c0@default> Message-ID: <018701c4c2cd$e168c300$6401a8c0@user> Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. Kath ----- Original Message ----- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Thursday, November 04, 2004 3:17 PM Subject: Re: [AccessD] OT: Online Access groups ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 10:52 PM Subject: [AccessD] OT: Online Access groups Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Now hold on there, Kath, let's see ... um, hm ... try this: Application.SaveAsText acForm, "FormName", "DesiredPath" I'm thinking that if there's a FrontPage control on this form that you can just delete it from the text file, delete the form, remove the bad ref, and then import that file right back in as a form. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Thu Nov 4 20:06:15 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Fri, 5 Nov 2004 03:06:15 +0100 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F85@mercury.tnco-inc.com> Message-ID: <003401c4c2dc$17f03b70$0500a8c0@masterserv> We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan From d.dick at uws.edu.au Thu Nov 4 19:55:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 12:55:38 +1100 Subject: [AccessD] A2K: Speed up access over a network Message-ID: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Hello all I realise the q is very broad and has a million possible suggestions That's what I'm after I have a client who I am developing an app for. So far they are very pleased. But just the other day....They now want to be able to use the app after hours at home on their laptops. (And they are prepared to pay for this major re-direction) So this means connecting (in some cases) to the back end using dial up Am I in the wrong business here? Is this time to migrate the App to be browser based? (Which I know nothing about by the way) If you guys have successfully got your Access Apps to work at any decent sort of speed over dial up can you let me know how?? Many thanks Darren From stuart at lexacorp.com.pg Thu Nov 4 20:36:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Nov 2004 12:36:31 +1000 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Message-ID: <418B73CF.28101.19A80AB3@lexacorp.com.pg> On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know nothing > about by the way) > > If you guys have successfully got your Access Apps to work at any decent > sort of speed > over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart From martyconnelly at shaw.ca Thu Nov 4 20:54:42 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Nov 2004 18:54:42 -0800 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> <001a01c4c221$c14f3740$6401a8c0@user> <03e601c4c225$2eed7930$6401a8c0@default> <018701c4c2cd$e168c300$6401a8c0@user> Message-ID: <418AEB72.8020702@shaw.ca> Try some variation of this code to remove reference It tests for broken reference lists by name and path to dll etc. If broken removes reference or use commented out code to delete by name Sub RemoveBrokenReferences() Dim refCurr As Reference Dim intLoop As Integer For intLoop = References.Count To 1 Step -1 Set refCurr = References(intLoop) Debug.Print References.Item(intLoop).Name & " - " & References.Item(intLoop).FullPath If refCurr.IsBroken = True Then References.Remove refCurr End If 'example forcibly remove DAO reference by name if cannot err 3109 'DAO - C:\Program Files\Common Files\Microsoft Shared\DAO\dao350.dll ' If References.Item(intLoop).Name = "DAO" Then ' References.Remove refCurr ' End If Next intLoop End Sub Kath Pelletti wrote: >Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. > >Kath > ----- Original Message ----- > From: Michael R Mattys > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 3:17 PM > Subject: Re: [AccessD] OT: Online Access groups > > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 10:52 PM > Subject: [AccessD] OT: Online Access groups > > > Lonnie - just a quick OT - I notice that your post also went to other Access > groups - do you find them as useful as AccessD? > > Kath > ----- Original Message ----- > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > > > Now hold on there, Kath, let's see ... um, hm ... try this: > > Application.SaveAsText acForm, "FormName", "DesiredPath" > > I'm thinking that if there's a FrontPage control on this form that > you can just delete it from the text file, delete the form, remove the > bad ref, and then import that file right back in as a form. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint > http://www.mattysconsulting.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 KP at sdsonline.net Thu Nov 4 21:24:23 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 14:24:23 +1100 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com><001a01c4c221$c14f3740$6401a8c0@user><03e601c4c225$2eed7930$6401a8c0@default><018701c4c2cd$e168c300$6401a8c0@user> <418AEB72.8020702@shaw.ca> Message-ID: <000f01c4c2e6$f31f5500$6401a8c0@user> Thanks Marty - I will try to use this......for the moment I can't even *type* or copy/paste into the vbe window - when I try to do so, I get error 'Error in loading dll'. aaarrrgh.... I've tried a reset but it makes no difference. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 1:54 PM Subject: Re: [AccessD] Can't delete or change missing references Try some variation of this code to remove reference It tests for broken reference lists by name and path to dll etc. If broken removes reference or use commented out code to delete by name Sub RemoveBrokenReferences() Dim refCurr As Reference Dim intLoop As Integer For intLoop = References.Count To 1 Step -1 Set refCurr = References(intLoop) Debug.Print References.Item(intLoop).Name & " - " & References.Item(intLoop).FullPath If refCurr.IsBroken = True Then References.Remove refCurr End If 'example forcibly remove DAO reference by name if cannot err 3109 'DAO - C:\Program Files\Common Files\Microsoft Shared\DAO\dao350.dll ' If References.Item(intLoop).Name = "DAO" Then ' References.Remove refCurr ' End If Next intLoop End Sub Kath Pelletti wrote: >Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. > >Kath > ----- Original Message ----- > From: Michael R Mattys > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 3:17 PM > Subject: Re: [AccessD] OT: Online Access groups > > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 10:52 PM > Subject: [AccessD] OT: Online Access groups > > > Lonnie - just a quick OT - I notice that your post also went to other Access > groups - do you find them as useful as AccessD? > > Kath > ----- Original Message ----- > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > > > Now hold on there, Kath, let's see ... um, hm ... try this: > > Application.SaveAsText acForm, "FormName", "DesiredPath" > > I'm thinking that if there's a FrontPage control on this form that > you can just delete it from the text file, delete the form, remove the > bad ref, and then import that file right back in as a form. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint > http://www.mattysconsulting.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 KP at sdsonline.net Thu Nov 4 21:26:46 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 14:26:46 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Message-ID: <002101c4c2e7$47558f40$6401a8c0@user> For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 4 21:30:06 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 14:30:06 +1100 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: <200411050330.iA53UHXH009824@cooper.uws.edu.au> Outstanding This allows me to continue in Access and VB Where do I set all this stuff up (Actually How is a better question:-)) Calling all Terminal Server gurus Many thanks Stuart Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 5 November 2004 1:37 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay > for this major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know > nothing about by the way) > > If you guys have successfully got your Access Apps to work at any > decent sort of speed over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 4 22:09:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 04 Nov 2004 23:09:32 -0500 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <003401c4c2dc$17f03b70$0500a8c0@masterserv> Message-ID: <001a01c4c2ed$40e1bcf0$e8dafea9@ColbyM6805> I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ 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 Nov 4 22:30:51 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 15:30:51 +1100 Subject: [AccessD] A2K:Make Some pages in a Tab Control Enabled and some not Message-ID: <200411050431.iA54V1XH004318@cooper.uws.edu.au> Hello all Under certain circumstances I want the user to go to a form "frmPreferences" that has a Tab Control on it called "tabMain" How can I (from the error trapping of another form) spark up the form that has the tabControl on it (That bit I can do) and then make certain tabs enabled or visible on that tab control? Many thanks in advance Darren From d.dick at uws.edu.au Thu Nov 4 22:51:41 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 15:51:41 +1100 Subject: [AccessD] A2K:Make Some pages in a Tab Control Enabled and some not(Solved) Message-ID: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Never mind I figured out one way to do it If Err.Number = 76 Then MsgBox "message about invalid path get 'em to reset paths then fire up the preferences form", vbCritical, "Unable to copy Offline Data File" DoCmd.OpenForm "frmPreferences" Forms!frmPreferences.TabBlank.SetFocus With Forms!frmPreferences For Each ctl In Forms!frmPreferences.Controls If ctl.Tag = 1 Then ctl.Enabled = False End If Next End With Forms!frmPreferences.pgOffline.SetFocus Else MsgBox Err.Number & " " & Err.Description, vbCritical, "Error in fExit module" End If From pcs at azizaz.com Fri Nov 5 01:21:48 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Fri, 5 Nov 2004 17:21:48 +1000 Subject: [AccessD] A2K:BackEnd Upgrader References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <026101c4c308$1fdeb420$fa10a8c0@Albatross> I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A few questions: Is 16 June 2002 the latest revision? Has any work been done on the BEup to accommodate more than one backend? Who best to contact with any specific questions or suggestions? Regards Borge Hansen --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From pedro at plex.nl Fri Nov 5 10:26:22 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 05 Nov 2004 10:26:22 (MET) Subject: [AccessD] how to do this? Message-ID: <200411050926.iA59QM8s014181@mailhostC.plex.net> Hello Group, What is the best way to do the following routine? I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. How can this been done. Thanks Pedro Janssen From gustav at cactus.dk Fri Nov 5 04:03:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 5 Nov 2004 11:03:23 +0100 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050330.iA53UHXH009824@cooper.uws.edu.au> References: <200411050330.iA53UHXH009824@cooper.uws.edu.au> Message-ID: <968427978.20041105110323@cactus.dk> Hi Darren Unless you would love to handle this and don't have better things to do, contract with a specialist. There are a lot of small dos and don'ts regarding rights, login, printers (remote print) which are not that simple. However, when up and running it's a nice solution. Do check the licensing scheme, though, as this is a mix of server license, user licenses and terminal service user licenses. One thing to insist on is to have a separate server for this. Don't mix it with file/print etc. not to mention an Exchange animal. /gustav > Outstanding > This allows me to continue in Access and VB > Where do I set all this stuff up (Actually How is a better question:-)) > Calling all Terminal Server gurus > Many thanks Stuart > Darren From carbonnb at sympatico.ca Fri Nov 5 04:34:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 05 Nov 2004 05:34:19 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: <026101c4c308$1fdeb420$fa10a8c0@Albatross> Message-ID: <418B10DB.28934.1BFDB1@localhost> On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > few questions: Is 16 June 2002 the latest revision? Has any work been Which version is that? Check the About form. > done on the BEup to accommodate more than one backend? Who best to None that I am aware of > contact with any specific questions or suggestions? You can ask here, since all the developers hang out here (Andy, Reuben and myself), but it may get missed or you can e-mail beu- support at databaseadvisors.com and get at the developers directly. -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. From pcs at azizaz.com Fri Nov 5 05:30:59 2004 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 5 Nov 2004 21:30:59 +1000 Subject: [AccessD] A2K:BackEnd Upgrader References: <418B10DB.28934.1BFDB1@localhost> Message-ID: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> The About Form says : Version 1.58 Latest One?? Regards Borge Hansen > On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > > > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > > few questions: Is 16 June 2002 the latest revision? > > Which version is that? Check the About form. > > > Has any work beendone on the BEup to accommodate more than one backend? > > None that I am aware of > > > Who best to contact with any specific questions or suggestions? > > You can ask here, since all the developers hang out here (Andy, > Reuben and myself), but it may get missed or you can e-mail beu- > support at databaseadvisors.com and get > at the developers directly. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > We're all here because we're not all there. --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From Helmut.E.Kotsch at t-online.de Fri Nov 5 06:29:50 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Fri, 5 Nov 2004 13:29:50 +0100 Subject: AW: [AccessD] A2K: Speed up access over a network In-Reply-To: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: Hi, would using Terminal Server bring a significant speed increase compared to using PcAnywhere or VNC? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Stuart McLachlan Gesendet: Freitag, 5. November 2004 03:37 An: Access Developers discussion and problemsolving Betreff: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know nothing > about by the way) > > If you guys have successfully got your Access Apps to work at any decent > sort of speed > over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ 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 Nov 5 07:12:09 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Nov 2004 14:12:09 +0100 Subject: [AccessD] A2K: Speed up access over a network Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54EC@stekelbes.ithelps.local> ABSOLUTELY No doubt about that... And VNC or PCA is not an option when using multiple users and for afety reasons (unless a seperate pc is used) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Friday, November 05, 2004 1:30 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] A2K: Speed up access over a network Hi, would using Terminal Server bring a significant speed increase compared to using PcAnywhere or VNC? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Stuart McLachlan Gesendet: Freitag, 5. November 2004 03:37 An: Access Developers discussion and problemsolving Betreff: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay > for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know > nothing about by the way) > > If you guys have successfully got your Access Apps to work at any > decent sort of speed over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 5 07:34:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 5 Nov 2004 14:34:45 +0100 Subject: AW: [AccessD] A2K: Speed up access over a network In-Reply-To: References: Message-ID: <4621109323.20041105143445@cactus.dk> Hi Helmut > would using Terminal Server bring a significant speed increase compared to > using PcAnywhere or VNC? The speed of the app itself will be about the same - this is determined by the hardware at the host end. Response time, however, is much slower with VNC. I don't know about PcAnywhere, but their competitor NetOp Remote Control is very fast and offers remote printing as does the Terminal Server. /gustav From shait at mindspring.com Fri Nov 5 07:36:15 2004 From: shait at mindspring.com (Stephen Hait) Date: Fri, 5 Nov 2004 08:36:15 -0500 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050330.iA53UHXH009824@cooper.uws.edu.au> References: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: <418B3B7F.22400.E7A815B@localhost> > Where do I set all this stuff up (Actually How is a better > question:-)) > > Calling all Terminal Server gurus Another possibility, if users access the app via a locally installed FE "at work", might be to let them access the app through their _own_ desktops via VNC, gotomypc, or similar. Just a thought, Stephen From JRojas at tnco-inc.com Fri Nov 5 07:42:04 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 5 Nov 2004 08:42:04 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Understood. Is it bad for to store the actual data, when using text, if they all share the same prefix? -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Thursday, November 04, 2004 6:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Checking for "holes" in a sequence using SQL On 4 Nov 2004 at 14:27, Joe Rojas wrote: > Arthur, > > I was not expecting the database to act intelligently. To be honest I was > not expecting there to even be a solution to this although Gustav figured it > out! > > I have an Access database that I used to keep track of the computers at my > company. The computer naming convention that I use is TNCO###. One of the > fields in the table is used for storing the computer name. If I remove a > computer from our network and physical remove it from the company, I would > like to be able to reuse that computer name instead of just using the next > sequential number. To me I do not see it as concatenating two column values > into one but I could be wrong. What do you think Arthur? > If you *always* use the same initial characters, you could just store the numeric value in the table and display them formatted as "TNCO"000 -- Stuart -- _______________________________________________ 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 Jdemarco at hudsonhealthplan.org Fri Nov 5 08:01:28 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 5 Nov 2004 09:01:28 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869F4@TTNEXCHCL2.hshhp.com> Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 *********************************************************************************** "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 Fri Nov 5 08:23:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Nov 2004 15:23:37 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54ED@stekelbes.ithelps.local> Please note that is is normal that a file is smaller after compacting. Don't forget after compacting your code needs to compile and store, but also queuries are compiled the first time they run. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 05, 2004 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 ************************************************************************ *********** "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 reuben at gfconsultants.com Fri Nov 5 08:31:05 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 5 Nov 2004 09:31:05 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> Message-ID: Borge, I'm not sure about the latest version. I know I am using 1.58 I beleive there is a new version. Unfortunately it has some untested stuff in it and therefore unreleased. Hopefully Andy or Bryan will see this and know more. I'll try to contact them as well. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Hansen > Sent: Friday, November 05, 2004 6:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:BackEnd Upgrader > > > The About Form says : Version 1.58 > > Latest One?? > > Regards > Borge Hansen > > > > On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > > > > > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > > > few questions: Is 16 June 2002 the latest revision? > > > > Which version is that? Check the About form. > > > > > Has any work beendone on the BEup to accommodate more than > one backend? > > > > None that I am aware of > > > > > Who best to contact with any specific questions or suggestions? > > > > You can ask here, since all the developers hang out here (Andy, > > Reuben and myself), but it may get missed or you can e-mail beu- > > support at databaseadvisors.com and get > > at the developers directly. > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > We're all here because we're not all there. > > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hudsonhealthplan.org Fri Nov 5 08:56:43 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 5 Nov 2004 09:56:43 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869F8@TTNEXCHCL2.hshhp.com> Understood Erwin. But I've been hearing that the new file format will either not compact down at all or very little unlike previous versions. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Friday, November 05, 2004 9:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Please note that is is normal that a file is smaller after compacting. Don't forget after compacting your code needs to compile and store, but also queuries are compiled the first time they run. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 05, 2004 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 ************************************************************************ *********** "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 mastercafe at ctv.es Fri Nov 5 09:55:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Fri, 5 Nov 2004 16:55:35 +0100 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <001a01c4c2ed$40e1bcf0$e8dafea9@ColbyM6805> Message-ID: <009201c4c34f$f611a240$0500a8c0@masterserv> And how to solve?? It's really terrible close and open the same application to check and make changes on the code Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: viernes, 05 de noviembre de 2004 05:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 5 10:14:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Nov 2004 08:14:12 -0800 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Fri Nov 5 10:16:21 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 5 Nov 2004 11:16:21 -0500 Subject: [AccessD] A2k on W2k vs A2k on WinXP Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF953@DISABILITYINS01> In the cases I had, it had to do with the users not having WINDOWS rights to the directory where the stuff was stored on the server. IIRC the answer was to set up user accounts using the same user names / passwords on the server so that they had the rights to access the dir. I am not a notwork guy so there may be other ways to deal with this. John W. Colby The DIS Database Guy -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Friday, November 05, 2004 10:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP And how to solve?? It's really terrible close and open the same application to check and make changes on the code Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: viernes, 05 de noviembre de 2004 05:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 5 10:48:27 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 05 Nov 2004 08:48:27 -0800 Subject: [AccessD] how to do this? References: <200411050926.iA59QM8s014181@mailhostC.plex.net> Message-ID: <418BAEDB.7090507@shaw.ca> Well you can either store the Quantity on Hand or Calculate it Here is an article that describes the pros and cons, This will affect your overall design. Inventory Control: Quantity on Hand http://members.iinet.net.au/~allenbrowne/AppInventory.html pedro at plex.nl wrote: >Hello Group, > >What is the best way to do the following routine? > >I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. > >How can this been done. > >Thanks > >Pedro Janssen > > > > -- Marty Connelly Victoria, B.C. Canada From serbach at new.rr.com Fri Nov 5 13:21:48 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 5 Nov 2004 13:21:48 -0600 Subject: [AccessD] A2K/AXP Repllcation problem Message-ID: <20041105132148.1553325418.serbach@new.rr.com> Dear Group, I have one application that uses Replication, for better or for worse. At the moment I'm converting it into a web-based app useing .NET technologies. Wish me luck. But for now my client is still using replication. There are a few laptops that are taken all over the state and brought back to the home office for synchronizing. Today this error occured when the synchronization progress bar had gotten about half-way.: "Synchronization between replica 'C:\Apps...mdb' and replica '\\Dawn-mpc\...mdb' failed. The search key was not found in any record." (I removed the full UNC path to the database names. The database names are correct.) The help for this error says: "Error 3079 occurs when an ISAM SEEK is being executed and there are no matching values in the index." I have no clue as to which key or index in which table. I was told that synchronization took place last week flawlessly. Might the repair and compact option be called for here? What do you think? Steve Erbach Scientific Marketing Neenah, WI From carbonnb at sympatico.ca Fri Nov 5 15:14:42 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 05 Nov 2004 16:14:42 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: References: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> Message-ID: <418BA6F2.2116.C0F2A8@localhost> On 5 Nov 2004 at 9:31, Reuben Cummings wrote: > Borge, I'm not sure about the latest version. I know I am using 1.58 > > I beleive there is a new version. Unfortunately it has some untested > stuff in it and therefore unreleased. > > Hopefully Andy or Bryan will see this and know more. I'll try to > contact them as well. Yep. 1.58 is the latest released version. There is a V1.59 in beta stages. I forget exactly what was changed/added between 1.58 and 1.59. I think it was the ability to handle a BE that is password protected, but I'm not sure. There is also a V2.01 in Alpha which allows it to work with a secured back end. -- Bryan Carbonnell - carbonnb at sympatico.ca Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. :) From stuart at lexacorp.com.pg Fri Nov 5 15:44:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Nov 2004 07:44:11 +1000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Message-ID: <418C80CA.982.1DC2BEAE@lexacorp.com.pg> On 5 Nov 2004 at 8:42, Joe Rojas wrote: > Understood. > Is it bad for to store the actual data, when using text, if they all share > the same prefix? > There are pros and cons - you need to weigh them up and make a decision based on how you are going to be entering/using the data. -- Stuart From accessd at shaw.ca Fri Nov 5 23:36:00 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 05 Nov 2004 21:36:00 -0800 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Message-ID: Hi Darren: Why not have a complete copy of the current DB on their laptop or remote computer and just sync the DBs. The process is usually very fast, even on a 56K link and then the tables can be re-synced back into the office master when updating is completed. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, November 04, 2004 5:56 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K: Speed up access over a network Hello all I realise the q is very broad and has a million possible suggestions That's what I'm after I have a client who I am developing an app for. So far they are very pleased. But just the other day....They now want to be able to use the app after hours at home on their laptops. (And they are prepared to pay for this major re-direction) So this means connecting (in some cases) to the back end using dial up Am I in the wrong business here? Is this time to migrate the App to be browser based? (Which I know nothing about by the way) If you guys have successfully got your Access Apps to work at any decent sort of speed over dial up can you let me know how?? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Nov 6 22:08:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 06 Nov 2004 23:08:54 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> In Access we use MDA/Es to store libraries of reusable code. Is there an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these other platforms have references like we do in Access? If so, can you reference an MDA/E to use code in it? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Nov 6 22:13:16 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 06 Nov 2004 23:13:16 -0500 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> I understand that you can use forms in Word, Excel and other Office apps. How capable are they? Do they have the same "code behind form" class for writing code in? Do the form controls have events in the same manner as Access? Are Withevents available? Are classes available, and if so, where are they stored? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jmhla at earthlink.net Sun Nov 7 00:14:47 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 6 Nov 2004 22:14:47 -0800 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> Message-ID: <200411070614.iA76EfL18940@databaseadvisors.com> John, Some Excel form info from John Walkenbachs page: http://j-walk.com/ss/excel/tips/userformtips.htm Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 06, 2004 8:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Forms in Word / Excel I understand that you can use forms in Word, Excel and other Office apps. How capable are they? Do they have the same "code behind form" class for writing code in? Do the form controls have events in the same manner as Access? Are Withevents available? Are classes available, and if so, where are they stored? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Sun Nov 7 04:53:10 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Sun, 7 Nov 2004 04:53:10 -0600 Subject: [AccessD] A2K/AXP Repllcation problem In-Reply-To: <20041105132148.1553325418.serbach@new.rr.com> References: <20041105132148.1553325418.serbach@new.rr.com> Message-ID: <20041107045310.1540446425.serbach@new.rr.com> Well, I found something over on Experts Exchange that may relate to this problem. It's a Microsoft KB article, Q301474. We'll see. Steve Erbach Neenah, WI > ------------Original Message------------ > From: "Steven W. Erbach" > To: "Access Developers discussion and problem solving" > Date: Fri, Nov-5-2004 1:41 PM > Subject: [AccessD] A2K/AXP Repllcation problem > > Dear Group, > > I have one application that uses Replication, for better or for worse. > At the moment I'm converting it into a web-based app useing .NET > technologies. Wish me luck. > > But for now my client is still using replication. There are a few > laptops that are taken all over the state and brought back to the home > office for synchronizing. Today this error occured when the synchronization > progress bar had gotten about half-way.: From dwaters at usinternet.com Sun Nov 7 07:40:33 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Nov 2004 07:40:33 -0600 Subject: [AccessD] Remote Queries Message-ID: <000601c4c4cf$5b020570$de1811d8@danwaters> Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems From carbonnb at sympatico.ca Sun Nov 7 08:40:16 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 09:40:16 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <418DED80.20562.1724CE@localhost> On 6 Nov 2004 at 23:08, John W. Colby wrote: > In Access we use MDA/Es to store libraries of reusable code. Is there > an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do Word/Excel, Not that I've ever run across but then again I've never gone looking for that capability either. > these other platforms have references like we do in Access? If so, Yes. References are a VBE thing. > can you reference an MDA/E to use code in it? Never tried, but can't see why it wouldn't work. -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From carbonnb at sympatico.ca Sun Nov 7 08:47:36 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 09:47:36 -0500 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <418DEF38.30083.1DDC8C@localhost> On 6 Nov 2004 at 23:13, John W. Colby wrote: > I understand that you can use forms in Word, Excel and other Office > apps. How capable are they? Do they have the same "code behind form" Becareful with the word Forms in Word. There are several things that are called forms in Word. There are "Fill-In-Forms" wich is just a Word doc with fields in the doc that you fill in. Then there are UserForms, which is what I think you are asking about. They are similar to Access Forms, but more closely behave like VB Forms. > class for writing code in? Do the form controls have events in the Yes, the Userforms, which are available in Excel too, have class modules. > same manner as Access? Are Withevents available? Are classes Yes., but the more closely resemble VB controls. WithEvents are available from Office 97 Up, IIRC. > available, and if so, where are they stored? Yes, classes are available, but where they are stored depends. Word Document that you add the class too have the class stored in the .doc file. Word Templates that you add classes to have the class stored in the .dot file. Word Docuemnts that you create from a template that has classes in the template have the class stored in the .dot. Excel Workbooks that you add classes to have the classes stored in the .xls file Excel Templates that you add classes to have the classes stored in the .xlt file Excel Workbooks that you create from Excel Templates that have classes have the classes stored in the .xls file. IOW, all the code, userforms, etc from an Excel template gets copied into the new workbook you create. It can be a real PITA. How's that for a start and to raise more questions :) -- Bryan Carbonnell - carbonnb at sympatico.ca Following the rules will not get the job done. From martyconnelly at shaw.ca Sun Nov 7 13:02:38 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 07 Nov 2004 11:02:38 -0800 Subject: [AccessD] Modules and libraries in Office References: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> Message-ID: <418E714E.9030505@shaw.ca> In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there an >equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these >other platforms have references like we do in Access? If so, can you >reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Sun Nov 7 16:43:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 8 Nov 2004 09:43:59 +1100 Subject: [AccessD] A2K3 Bloating In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C744869F4@TTNEXCHCL2.hshhp.com> Message-ID: <200411072244.iA7Mi6XH003688@cooper.uws.edu.au> Hi Jim I work with Access 200 and 2003 I get good results with this method -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Saturday, 6 November 2004 1:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 **************************************************************************** ******* "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 KP at sdsonline.net Sun Nov 7 17:49:48 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 8 Nov 2004 10:49:48 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <006901c4c524$782fce70$6401a8c0@user> Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 7 18:37:56 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 07 Nov 2004 16:37:56 -0800 Subject: [AccessD] Date() not working - MDAC issue or not? In-Reply-To: <006901c4c524$782fce70$6401a8c0@user> Message-ID: Hi Kath: This problem you are having sounds like a very old problem, about four to five years ago, that I had on a site that had just been upgraded to A2K. Neither the Date(), Format() etc., commands would work. The solution turned out to be a simple update from MS. The problem only happened with upgrades and not with full installs. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Sunday, November 07, 2004 3:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Sun Nov 7 19:14:17 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 8 Nov 2004 12:14:17 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <001e01c4c530$45561cf0$6401a8c0@user> I remember this happening back then too - with Win98 users - but I have never seen it with Win 2K pro or WinXP Pro. Back then I remember it was the MDAC version - but now - who knows. Kath ----- Original Message ----- From: Jim Lawrence (AccessD) To: Access Developers discussion and problem solving Sent: Monday, November 08, 2004 11:37 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Hi Kath: This problem you are having sounds like a very old problem, about four to five years ago, that I had on a site that had just been upgraded to A2K. Neither the Date(), Format() etc., commands would work. The solution turned out to be a simple update from MS. The problem only happened with upgrades and not with full installs. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Sunday, November 07, 2004 3:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sun Nov 7 19:36:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 20:36:55 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418E714E.9030505@shaw.ca> Message-ID: <000001c4c533$71eabe30$e8dafea9@ColbyM6805> Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 jwcolby at colbyconsulting.com Sun Nov 7 19:37:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 20:37:56 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418DED80.20562.1724CE@localhost> Message-ID: <000101c4c533$959af160$e8dafea9@ColbyM6805> I tried from Word and it definitely doesn't work. Haven't tried yet from Excel etc but I am not optimistic. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Sunday, November 07, 2004 9:40 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Modules and libraries in Office On 6 Nov 2004 at 23:08, John W. Colby wrote: > In Access we use MDA/Es to store libraries of reusable code. Is there > an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do Word/Excel, Not that I've ever run across but then again I've never gone looking for that capability either. > these other platforms have references like we do in Access? If so, Yes. References are a VBE thing. > can you reference an MDA/E to use code in it? Never tried, but can't see why it wouldn't work. -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Nov 7 20:26:30 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 21:26:30 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <000101c4c533$959af160$e8dafea9@ColbyM6805> References: <418DED80.20562.1724CE@localhost> Message-ID: <418E9306.22911.29DB85D@localhost> On 7 Nov 2004 at 20:37, John W. Colby wrote: > I tried from Word and it definitely doesn't work. Haven't tried yet > from Excel etc but I am not optimistic. Well, I just went looking and it looks like that you would need to create a VB DLL for a code library to share code across all the Office apps. BTW, you can't reference an md[a|e] in Excel Excel templates and worksheets only. I just checked :( -- Bryan Carbonnell - carbonnb at sympatico.ca When you don't know what to do, walk fast and look worried. From michael.mattys at adelphia.net Sun Nov 7 21:16:23 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Sun, 7 Nov 2004 22:16:23 -0500 Subject: [AccessD] Modules and libraries in Office References: <000001c4c533$71eabe30$e8dafea9@ColbyM6805> Message-ID: <00f501c4c541$54594860$6401a8c0@default> John, Are you talking about the designers? I thought you could have a common standard or class module within the dll, and just pass in the Application object as Object. Then just Select Case to perform the appropriate action. I'll look again, but I'm pretty sure that's it. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 8:36 PM Subject: RE: [AccessD] Modules and libraries in Office > Holy cow, is that a mish mash or what? The point of my questions was to try > to find a common ground where code could be stored and run from all of the > various office applications. Not to be it would seem. It does seem bizarre > that if I had some function that should be able to run in any of the apps I > have to save the same thing in 5 different places so that Access, Excel, > Word, Powerpoint and Outlook could use it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Sunday, November 07, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > In Excel you can store functions and modules as Public in .xla files. > Old Excel pre 97 didn't store the code in xla it > looked like an mde file. Matter of fact you can call these .xla files > from Access. I have called functions from the Excel Statistical and > Financial Analysis Packs. > > In Outlook 2000 and any code that you create in the Outlook VBA > environment is stored in a file named VBAProject.otm. > Even though you can copy the VBAProject.otm file, that's not a good way > to distribute Outlook macros company-wide. The recommended method is to > create an Outlook or Word COM add-in. Talk to Shamil he has been > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > http://www.outlookcode.com/d/comaddins.htm > > Word uses templates either user or workgroup (to be shared) in a > specific folder > A template contain macros or other customizations such as toolbars, it > works better from some locations than others. > Again these com addin's can be used in place of macro's. > see > http://word.mvps.org/FAQs/index.htm > > Just for future reference this method is also partially available under > word and excel > > Under the Tools/References menu in the VBE, you need to check the Microsoft > Visual Basic for Applications Extensibility 5.3 object library. Microsoft > Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common > Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > The following code exports the contents of the Code Module to a file called > test.bas. This can be run from Word or Excel > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") > I think you can also import code this way but never tried it or got it > to work or something. > > John W. Colby wrote: > > >In Access we use MDA/Es to store libraries of reusable code. Is there > >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do > >these other platforms have references like we do in Access? If so, can > >you reference an MDA/E to use code in it? > > > >John W. Colby > >www.ColbyConsulting.com > > > >Contribute your unused CPU cycles to a good cause: > >http://folding.stanford.edu/ > > > > > > > > > > -- > 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 jwcolby at colbyconsulting.com Sun Nov 7 21:46:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 22:46:59 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <00f501c4c541$54594860$6401a8c0@default> Message-ID: <000301c4c545$9e1d9290$e8dafea9@ColbyM6805> No, I'm talking about an application framework where the code is available to any Office application. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 10:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office John, Are you talking about the designers? I thought you could have a common standard or class module within the dll, and just pass in the Application object as Object. Then just Select Case to perform the appropriate action. I'll look again, but I'm pretty sure that's it. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 8:36 PM Subject: RE: [AccessD] Modules and libraries in Office > Holy cow, is that a mish mash or what? The point of my questions was > to try > to find a common ground where code could be stored and run from all of > the various office applications. Not to be it would seem. It does > seem bizarre > that if I had some function that should be able to run in any of the > apps I > have to save the same thing in 5 different places so that Access, > Excel, Word, Powerpoint and Outlook could use it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: Sunday, November 07, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > In Excel you can store functions and modules as Public in .xla files. > Old Excel pre 97 didn't store the code in xla it looked like an mde > file. Matter of fact you can call these .xla files from Access. I have > called functions from the Excel Statistical and Financial Analysis > Packs. > > In Outlook 2000 and any code that you create in the Outlook VBA > environment is stored in a file named VBAProject.otm. Even though you > can copy the VBAProject.otm file, that's not a good way to distribute > Outlook macros company-wide. The recommended method is to create an > Outlook or Word COM add-in. Talk to Shamil he has been upgrading com > addins to dotnet. http://www.outlookcode.com/d/vb.htm > http://www.outlookcode.com/d/comaddins.htm > > Word uses templates either user or workgroup (to be shared) in a > specific folder A template contain macros or other customizations > such as toolbars, it works better from some locations than others. > Again these com addin's can be used in place of macro's. > see > http://word.mvps.org/FAQs/index.htm > > Just for future reference this method is also partially available > under word and excel > > Under the Tools/References menu in the VBE, you need to check the Microsoft > Visual Basic for Applications Extensibility 5.3 object library. > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > The following code exports the contents of the Code Module to a file called > test.bas. This can be run from Word or Excel > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.b > as") > I think you can also import code this way but never tried it or got it > to work or something. > > John W. Colby wrote: > > >In Access we use MDA/Es to store libraries of reusable code. Is > >there an equivalent for Word / Excel / Outlook etc (the rest of > >Office)? Do these other platforms have references like we do in > >Access? If so, can you reference an MDA/E to use code in it? > > > >John W. Colby > >www.ColbyConsulting.com > > > >Contribute your unused CPU cycles to a good cause: > >http://folding.stanford.edu/ > > > > > > > > > > -- > 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 michael.mattys at adelphia.net Sun Nov 7 22:08:34 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Sun, 7 Nov 2004 23:08:34 -0500 Subject: [AccessD] Modules and libraries in Office References: <000301c4c545$9e1d9290$e8dafea9@ColbyM6805> Message-ID: <012101c4c548$a06160b0$6401a8c0@default> Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is available > to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the dll, > and just pass in the Application object as Object. Then just Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions was > > to > try > > to find a common ground where code could be stored and run from all of > > the various office applications. Not to be it would seem. It does > > seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla files. > > Old Excel pre 97 didn't store the code in xla it looked like an mde > > file. Matter of fact you can call these .xla files from Access. I have > > called functions from the Excel Statistical and Financial Analysis > > Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though you > > can copy the VBAProject.otm file, that's not a good way to distribute > > Outlook macros company-wide. The recommended method is to create an > > Outlook or Word COM add-in. Talk to Shamil he has been upgrading com > > addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. > > see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 jwcolby at colbyconsulting.com Mon Nov 8 06:35:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 07:35:39 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <012101c4c548$a06160b0$6401a8c0@default> Message-ID: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Mon Nov 8 09:38:45 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 8 Nov 2004 10:38:45 -0500 Subject: [AccessD] Missing months in a crosstab query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From DWUTKA at marlow.com Mon Nov 8 09:45:13 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 8 Nov 2004 09:45:13 -0600 Subject: [AccessD] Remote Queries Message-ID: <123701F54509D9119A4F00D0B747349016D06C@main2.marlow.com> There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Mon Nov 8 09:50:00 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 08 Nov 2004 10:50:00 -0500 Subject: [AccessD] Missing months in a crosstab query References: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> Message-ID: <418F95A8.4040102@torchlake.com> Hi Susan, If you create an OUTER JOIN rather than an INNER JOIN to show all records in the table that holds the months, I think you will solve your problem. I can't tell you how many times I have had to rediscover the basic truth that INNER JOIN means I will see only those records with matching field entries in both tables. HTH, Tina Klos, Susan wrote: >I have the following crosstab query which I am using to bind to a report: > >TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] > >SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin >occupancy/Midweek") AS Type, "Cabin" AS Category > >FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = >tlnklodgingEvent.EventID > >WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or >(tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) > >GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin >occupancy/Midweek"), "Cabin" > >PIVOT Month(tblEvent.Beginningdate); > > > >I want to have the report show all months even though there may be no data >for a particular month. In the above query, I get data for January through >June and September through December. Nobody stayed in cabins during July >and August. So in the report I want to show zeroes in those columns. I >tried using text boxes and IIF statements to test for null but I knew that >wouldn't work because month numbers 7 and 8 aren't null they just don't >exist in the query. I tried looking in help to see if there was an "if >exists" function to see if I could see if the field exists in the query. I >couldn't find anything like that. Should I be working at the query level >instead to have the query insert a zero if there are months missing? If so >I will need help on that also. Thanks in advance for any help. > > > >Susan Klos > >Senior Database Analyst > >Evaluation and Reporting > >Florida Department of Education > >850-245-0708 > >sc 205-0708 > > > > > From cfoust at infostatsystems.com Mon Nov 8 10:27:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Nov 2004 08:27:46 -0800 Subject: [AccessD] Modules and libraries in Office Message-ID: But remember, Access doesn't use the same kind of forms that VB and the other Office apps use. If you want to share code, create a dll and reference it in the various projects. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, November 07, 2004 5:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas ") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 dispec.com Mon Nov 8 11:06:07 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 8 Nov 2004 12:06:07 -0500 Subject: [AccessD] Modules and libraries in Office Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF959@DISABILITYINS01> This is an area that provides a stark glimpse into the disparate roots of the various Office Applications. There is plenty of code that can / should run in any of the applications. Aside from the fact that I use a table to pull initialization values for the framework, the framework itself (or at least the foundation) has nothing whatsoever that is platform specific. It sets itself up, it provides hooks for services such as zip / unzip, ftp, error logging etc. All of that is just VBA. No references to forms or reports. All that stuff should work just fine from Word, Excel, Outlook etc. There are developers who create entire applications around Outlook for example. They live, breath and die inside Outlook. Yet the framework could provide a valid foundation for an Outlook application just as easily as for an Access application. Of course a DLL can be created, but that is nowhere near as simple as what can be done in Access (for example) where the app and the mda are placed in the same dir, the app references the mda and starts using it. No visual basic compiler, no registration of a DLL, no registry keys, no nada. Just use it. I played around with Excel this morning for a few minutes. I was able to create a class. I could not for the life of me figure out how to change the NAME of the class although it is probably possible somewhere. I could place an ocx combo (for example) on a spreadsheet. I could set the combo to bind to a cell, take its values from a range. The combo can fire events handled in the sheet's module. I could dim a variable for a class which sinks the combo events etc. etc. All the pieces are there to write pretty powerful aps from right inside Excel. Very similar, yet distinctly different from doing it in Access. So now I have a framework that is just VBA, but it is in an Access MDA. In order to use it in Excel I have to either somehow move it all out to an excel set of classes / modules, stored in a workbook or something, or go to an entirely external environment, use a compiler to create a dll, then install and reference that dll. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, November 08, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office But remember, Access doesn't use the same kind of forms that VB and the other Office apps use. If you want to share code, create a dll and reference it in the various projects. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, November 07, 2004 5:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas ") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 accessd at shaw.ca Mon Nov 8 11:30:00 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 09:30:00 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> Message-ID: How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Mon Nov 8 11:48:54 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 8 Nov 2004 12:48:54 -0500 Subject: [AccessD] Modules and libraries in Office Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF95A@DISABILITYINS01> LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jim.Hale at FleetPride.com Mon Nov 8 13:09:23 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Nov 2004 13:09:23 -0600 Subject: [AccessD] Missing months in a crosstab query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203@corp-es01.fleetpride.com> Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale -----Original Message----- From: Klos, Susan [mailto:Susan.Klos at fldoe.org] Sent: Monday, November 08, 2004 9:39 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Missing months in a crosstab query I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Mon Nov 8 13:26:36 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 08 Nov 2004 11:26:36 -0800 Subject: [AccessD] Modules and libraries in Office References: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> Message-ID: <418FC86C.5000306@shaw.ca> It gets even more complex from .dotnet framework calling Com via PIA with Word 2003 and Excel.2003 You might only get away with this, using Application Objects, available in most MS object models. For example this code should be callable from any VBA editor Word, Excel, Access or PowerPoint Instead of InternetExplorer.application below you could use Word.Application etc Try this code for a chuckle useful if you have to display large amount of scrollable text in Access. This will need WMI installed on the machine, either WinXP or win2000 for the WMI portion of example to run. Win 98 can install WMI 1.5 but may not work Sub testIE() '------------------ ' qfcheck.vbs ver 1.0 3-Dec-2003 ' Check Automatic Update Installation History for Hotfixes '------------------ 'http://www.microsoft.com/technet/treeview/default.asp? url=/technet/scriptcenter/logs/scrlog08.asp Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" 'need this to open IE correctly or use url objExplorer.Toolbar = 0 'set to 1 to turn on IE toolbar objExplorer.StatusBar = 0 'set to 1 to turn on objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringTodate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringTodate(dtmDate) 'sorts out odd date structure WMIDateStringTodate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function John W. Colby wrote: >I am proposing a book to a publisher I just finished writing for, which will >be about reusable code for Microsoft Access specifically, modules, classes, >libraries and frameworks. > >I was hoping to find a way to make the code accessible to different >platforms should someone be more comfortable working in Word or Excel. >While a com object would certainly accomplish this, it involves tools (and >expertise) outside of the office suite. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys >Sent: Sunday, November 07, 2004 11:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Modules and libraries in Office > > >Maybe I'm misunderstanding, but ... > >(From Q230225) >COM add-ins are a new feature in Microsoft Office 2000 >and are supported by all Office programs, including Outlook. > >Key benefits of COM add-ins include: > >COM add-ins run in-process with the host program, so custom code generally >runs faster than code implemented in Visual Basic for Applications. > >The basic COM add-in architecture is consistent across all Office programs, >whereas in previous versions of Office, each program had its own add-in >architecture. > >You can create one COM add-in to use with more than one Office program. > >Example: > >http://support.microsoft.com/kb/238228 > >---- > >Michael R. Mattys >Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > >----- Original Message ----- >From: "John W. Colby" >To: "'Access Developers discussion and problem solving'" > >Sent: Sunday, November 07, 2004 10:46 PM >Subject: RE: [AccessD] Modules and libraries in Office > > > > >>No, I'm talking about an application framework where the code is >>available to any Office application. >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R >> >> >Mattys > > >>Sent: Sunday, November 07, 2004 10:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Modules and libraries in Office >> >> >>John, >> >>Are you talking about the designers? >> >>I thought you could have a common standard or class module within the >>dll, and just pass in the Application object as Object. Then just >>Select Case >> >> >to > > >>perform the appropriate action. I'll look again, but I'm pretty sure >> >> >that's > > >>it. >> >>---- >> >>Michael R. Mattys >>Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com >> >> >> >>----- Original Message ----- >>From: "John W. Colby" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Sunday, November 07, 2004 8:36 PM >>Subject: RE: [AccessD] Modules and libraries in Office >> >> >> >> >>>Holy cow, is that a mish mash or what? The point of my questions >>>was to >>> >>> >>try >> >> >>>to find a common ground where code could be stored and run from all >>>of the various office applications. Not to be it would seem. It >>>does seem >>> >>> >>bizarre >> >> >>>that if I had some function that should be able to run in any of the >>>apps >>> >>> >>I >> >> >>>have to save the same thing in 5 different places so that Access, >>>Excel, Word, Powerpoint and Outlook could use it. >>> >>>John W. Colby >>>www.ColbyConsulting.com >>> >>>Contribute your unused CPU cycles to a good cause: >>>http://folding.stanford.edu/ >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: Sunday, November 07, 2004 2:03 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] Modules and libraries in Office >>> >>> >>>In Excel you can store functions and modules as Public in .xla >>>files. Old Excel pre 97 didn't store the code in xla it looked like >>>an mde file. Matter of fact you can call these .xla files from >>>Access. I have called functions from the Excel Statistical and >>>Financial Analysis Packs. >>> >>>In Outlook 2000 and any code that you create in the Outlook VBA >>>environment is stored in a file named VBAProject.otm. Even though >>>you can copy the VBAProject.otm file, that's not a good way to >>>distribute Outlook macros company-wide. The recommended method is to >>>create an Outlook or Word COM add-in. Talk to Shamil he has been >>>upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm >>>http://www.outlookcode.com/d/comaddins.htm >>> >>>Word uses templates either user or workgroup (to be shared) in a >>>specific folder A template contain macros or other customizations >>>such as toolbars, it works better from some locations than others. >>>Again these com addin's can be used in place of macro's. see >>>http://word.mvps.org/FAQs/index.htm >>> >>>Just for future reference this method is also partially available >>>under word and excel >>> >>>Under the Tools/References menu in the VBE, you need to check the >>> >>> >>Microsoft >> >> >>>Visual Basic for Applications Extensibility 5.3 object library. >>>Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program >>>Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB >>> >>> >>>The following code exports the contents of the Code Module to a file >>> >>> >>called >> >> >>>test.bas. This can be run from Word or Excel >>> >>>Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test >>>.b >>>as") >>>I think you can also import code this way but never tried it or got it >>>to work or something. >>> >>>John W. Colby wrote: >>> >>> >>> >>>>In Access we use MDA/Es to store libraries of reusable code. Is >>>>there an equivalent for Word / Excel / Outlook etc (the rest of >>>>Office)? Do these other platforms have references like we do in >>>>Access? If so, can you reference an MDA/E to use code in it? >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>>Contribute your unused CPU cycles to a good cause: >>>>http://folding.stanford.edu/ >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>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 >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Mon Nov 8 14:51:40 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 12:51:40 -0800 Subject: [AccessD] Remote Queries In-Reply-To: <123701F54509D9119A4F00D0B747349016D06C@main2.marlow.com> Message-ID: Just a note: There might be a better way to handle access to the remote database. It will not solve the problem if the database location is changed but it will handle the security issue. See: http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDB ProviderForMicrosoftJet for ADO connection string Set variables like: Dim gstrConnection As String Dim gconMYRemoteDB As ADODB.Command Dim strSQL as String Public rsMyRecordset As ADODB.Recordset gstrConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Databases\Process.mdb;" & _ "Jet OLEDB:System Database=MySystem.mdw", _ "myUsername", "myPassword" Set gconMYRemoteDB = New ADODB.Command With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "Select * from MyTable Where MyFirstField = 1" .CommandType = adCmdText End With ...or... if you are using a query from the remote DB that has a parameter you would use something like this... With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "qryMyQueryName" .CommandType = adCmdStoredProc .Parameters.Append .CreateParameter("NameofParameterToFill", adChar, adParamInput, 10, strParameterValueToPass) End With 'To fill a recordset Set rsMyRecordset = New ADODB.Recordset With rsMyRecordset .CursorLocation = adUseClient ' Note; dynamic and record locking. Mandatory for multi-user ' environments as MDBs are not as sophisticated as SQL servers ' and that implies code to manage record data changes or conflicts. .Open gconMYRemoteDB, , adOpenDynamic, adLockOptimistic If .BOF = False Or .EOF = False Then .MoveLast End With ...or to simply execute a command... strSQL = "INSERT INTO MyTable ( MyField1, MyField2 ) " & _ "VALUES(" & Str(Variable1) & ", '" & Variable2 & "')" gconMYRemoteDB.Execute strSQL Set gconMYRemoteDB = Nothing This way is ideal as you can have as many DBs open as you wish (within system limits of course), all at once. This also manages the issues of security. Hopefully that DBs do not wander around to frequently so that their locations have to be continually managed. (Note that previous was done from memory with limited reliability.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, November 08, 2004 7:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remote Queries There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:00:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 13:00:08 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF95A@DISABILITYINS01> Message-ID: WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:35:36 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 8 Nov 2004 22:35:36 +0100 Subject: [AccessD] how to do this? References: <200411050926.iA59QM8s014181@mailhostC.plex.net> <418BAEDB.7090507@shaw.ca> Message-ID: <001501c4c5da$e3c3d120$f8c581d5@pedro> Thank you Marty, this is very usefull. Pedro Janssen ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, November 05, 2004 5:48 PM Subject: Re: [AccessD] how to do this? > Well you can either store the Quantity on Hand or Calculate it > Here is an article that describes the pros and cons, This will affect > your overall design. > Inventory Control: Quantity on Hand > http://members.iinet.net.au/~allenbrowne/AppInventory.html > > > pedro at plex.nl wrote: > > >Hello Group, > > > >What is the best way to do the following routine? > > > >I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. > > > >How can this been done. > > > >Thanks > > > >Pedro Janssen > > > > > > > > > > -- > 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 jwcolby at colbyconsulting.com Mon Nov 8 15:41:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 16:41:50 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: Message-ID: <001d01c4c5db$c59dcf60$e8dafea9@ColbyM6805> I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:47:56 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 8 Nov 2004 22:47:56 +0100 Subject: [AccessD] difficult query?? Message-ID: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Hello Group, i have a table [tblA] with 20 fields. One of these fields [Number] has a value from 1 to 25. I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other fields must also be present. for example i have tblA ID fieldA Number etc etc etc 1 A 3 i need ID fieldA Number etc etc etc 1 A X 1 A X 1 A X Can this been done? Thanks Pedro Janssen From cfoust at infostatsystems.com Mon Nov 8 16:04:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Nov 2004 14:04:35 -0800 Subject: [AccessD] Modules and libraries in Office Message-ID: Didn't aPress buy some of them as well? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, November 08, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 16:13:22 2004 From: starkey at wanadoo.nl (StaRKeY) Date: Mon, 8 Nov 2004 23:13:22 +0100 Subject: [AccessD] difficult query?? In-Reply-To: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Message-ID: <20041108220911.E970EE7@smtp4.wanadoo.nl> Hi Pedro, Must this be done in SQL/query or are you allowed to use a loop? If you can use a loop I'd use the number field in a nested loop (eg. 1 to nr.) to add all records into a new table having the numberfield filled with 'X. Regards, Eric Starkenburg -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen Verzonden: maandag 8 november 2004 22:48 Aan: AccessD at databaseadvisors.com Onderwerp: [AccessD] difficult query?? Hello Group, i have a table [tblA] with 20 fields. One of these fields [Number] has a value from 1 to 25. I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other fields must also be present. for example i have tblA ID fieldA Number etc etc etc 1 A 3 i need ID fieldA Number etc etc etc 1 A X 1 A X 1 A X Can this been done? Thanks Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 Getest op: 8-11-2004 23:13:21 avast! auteursrecht (c) 2000-2004 ALWIL Software. From jwcolby at colbyconsulting.com Mon Nov 8 16:26:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 17:26:38 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: Message-ID: <002001c4c5e2$07f2a600$e8dafea9@ColbyM6805> I'm not sure really. Since mine was bought by Wiley I kind of lost interest in the rest. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 08, 2004 5:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office Didn't aPress buy some of them as well? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, November 08, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 8 18:27:51 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 01:27:51 +0100 Subject: [AccessD] OT: Powerpoint Autoexec? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> How can I automaticaly run a VBA sub routine in Powerpoint when the presentation is loaded??? Like the auotexec macro in Access. thx 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 martyconnelly at shaw.ca Mon Nov 8 22:44:01 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 08 Nov 2004 20:44:01 -0800 Subject: [AccessD] OT: Powerpoint Autoexec? References: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> Message-ID: <41904B11.7060506@shaw.ca> Powerpoint mvps http://www.mvps.org/links.html#PowerPoint Here is how to start from Access http://www.mvps.org/skp/vb/vbppt001.htm or look through here http://www.mvps.org/links.html#PowerPoint Erwin Craps - IT Helps wrote: >How can I automaticaly run a VBA sub routine in Powerpoint when the >presentation is loaded??? >Like the auotexec macro in Access. > >thx > > > >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 > > > > -- Marty Connelly Victoria, B.C. Canada From ebarro at afsweb.com Mon Nov 8 22:44:29 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 8 Nov 2004 20:44:29 -0800 Subject: [AccessD] leveraging the power of the database versus code In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> Message-ID: Cross-posted to dba-SQLServer list: Ok I need to generate a crosstab query (aka pivot table) using SQL server. The problem with SQL server is that it can't handle dynamically generated columns. In other words you would need to hard code the names of the columns which assumes that you know them beforehand. However, in most cases, the column values could not be determined ahead of time. Access of course handles this with great aplomb. But SQL server? Well...that's another story. :) So...I found a way to do this utilizing a stored procedure that dynamically generates the SELECT statements and uses a temporary table to store the values. You'd think that would be the end of the story...BUT the dba balked at the proposed method since according to him SQL server was not designed to handle this sort of stuff and that the dynamically generated SELECT statements would be highly inefficient. My question then to the group is this... Is it not better to let SQL server handle the load and the processing on the server side rather than let the client side handle all that processing? To take an example: State Product1 Product2 Product3 CA 1000 500 200 MA 900 200 450 NV 600 600 600 where Products are dynamically generated The method I discovered to produce the desired results using a stored procedure worked. The suggestion I got was to handle all of that processing in code (outside of SQL server). Which means that in order to produce the desired results above, the code would need to grab the recordset from SQL server, and for each column generate the appropriate SELECT statement to return the values to either populate an in-memory array or post the results to a table from which it can read the final results. Now...given that scenario isn't it more efficient to let SQL server handle all of that processing given that it handles all of the processing on the server side instead of client side basically resulting in less round trips from the web server to the SQL server? I would appreciate feedback from you guys. The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From d.dick at uws.edu.au Mon Nov 8 22:52:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 9 Nov 2004 15:52:48 +1100 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: Message-ID: Hey Deano Thanks Gustav and Deano You guys are legends I have done it a million times - but it's one of those copy and paste deals for me I neven learn that stuff - toooooo sanguine :-)) See ya'll Many thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dean Ellis Sent: Tuesday, 2 November 2004 10:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Currency as a percentage Dazza, The formula is fairly simple. Just divide 5 (being the percentage) by 100 and multiply it by the dollar amount. This will give the percentage og the dollar amount in dollars. Putting it into context. Percent field = txtpercent Dollar field = txtdollar discount field = txtdiscount txtdiscount = txtdollar * (txtpercent/100) Cheers Dean -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, 2 November 2004 9:46 PM To: AccessD List Subject: [AccessD] A2K: Currency as a percentage Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? 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 actebs at actebs.com.au Mon Nov 8 23:19:43 2004 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 9 Nov 2004 16:19:43 +1100 Subject: [AccessD] Word Docs Bookmark Check Message-ID: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> Hi Guys, I am doing a merge to word using bookmarks. There are numerous word docs associated with activities and the user sets this up via the app setup screen. What I need to check is whether the bookmark for that activity type exists within the user selected document. Can this be done? Basically the procedure is as follows: a) User nominates a document to an activity b) User processes a transaction which instigates the word merge process which saves the doc with merged data Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... I hope I explained it well enough... Regards Vlad From accessd at shaw.ca Mon Nov 8 23:35:21 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 21:35:21 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418FC86C.5000306@shaw.ca> Message-ID: Hi Marty: The code and explanation can now be found at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/ht ml/scripting06112002.asp Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Monday, November 08, 2004 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office It gets even more complex from .dotnet framework calling Com via PIA with Word 2003 and Excel.2003 You might only get away with this, using Application Objects, available in most MS object models. For example this code should be callable from any VBA editor Word, Excel, Access or PowerPoint Instead of InternetExplorer.application below you could use Word.Application etc Try this code for a chuckle useful if you have to display large amount of scrollable text in Access. This will need WMI installed on the machine, either WinXP or win2000 for the WMI portion of example to run. Win 98 can install WMI 1.5 but may not work Sub testIE() '------------------ ' qfcheck.vbs ver 1.0 3-Dec-2003 ' Check Automatic Update Installation History for Hotfixes '------------------ 'http://www.microsoft.com/technet/treeview/default.asp? url=/technet/scriptcenter/logs/scrlog08.asp Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" 'need this to open IE correctly or use url objExplorer.Toolbar = 0 'set to 1 to turn on IE toolbar objExplorer.StatusBar = 0 'set to 1 to turn on objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringTodate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringTodate(dtmDate) 'sorts out odd date structure WMIDateStringTodate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function John W. Colby wrote: >I am proposing a book to a publisher I just finished writing for, which will >be about reusable code for Microsoft Access specifically, modules, classes, >libraries and frameworks. > >I was hoping to find a way to make the code accessible to different >platforms should someone be more comfortable working in Word or Excel. >While a com object would certainly accomplish this, it involves tools (and >expertise) outside of the office suite. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys >Sent: Sunday, November 07, 2004 11:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Modules and libraries in Office > > >Maybe I'm misunderstanding, but ... > >(From Q230225) >COM add-ins are a new feature in Microsoft Office 2000 >and are supported by all Office programs, including Outlook. > >Key benefits of COM add-ins include: > >COM add-ins run in-process with the host program, so custom code generally >runs faster than code implemented in Visual Basic for Applications. > >The basic COM add-in architecture is consistent across all Office programs, >whereas in previous versions of Office, each program had its own add-in >architecture. > >You can create one COM add-in to use with more than one Office program. > >Example: > >http://support.microsoft.com/kb/238228 > >---- > >Michael R. Mattys >Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > >----- Original Message ----- >From: "John W. Colby" >To: "'Access Developers discussion and problem solving'" > >Sent: Sunday, November 07, 2004 10:46 PM >Subject: RE: [AccessD] Modules and libraries in Office > > > > >>No, I'm talking about an application framework where the code is >>available to any Office application. >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R >> >> >Mattys > > >>Sent: Sunday, November 07, 2004 10:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Modules and libraries in Office >> >> >>John, >> >>Are you talking about the designers? >> >>I thought you could have a common standard or class module within the >>dll, and just pass in the Application object as Object. Then just >>Select Case >> >> >to > > >>perform the appropriate action. I'll look again, but I'm pretty sure >> >> >that's > > >>it. >> >>---- >> >>Michael R. Mattys >>Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com >> >> >> >>----- Original Message ----- >>From: "John W. Colby" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Sunday, November 07, 2004 8:36 PM >>Subject: RE: [AccessD] Modules and libraries in Office >> >> >> >> >>>Holy cow, is that a mish mash or what? The point of my questions >>>was to >>> >>> >>try >> >> >>>to find a common ground where code could be stored and run from all >>>of the various office applications. Not to be it would seem. It >>>does seem >>> >>> >>bizarre >> >> >>>that if I had some function that should be able to run in any of the >>>apps >>> >>> >>I >> >> >>>have to save the same thing in 5 different places so that Access, >>>Excel, Word, Powerpoint and Outlook could use it. >>> >>>John W. Colby >>>www.ColbyConsulting.com >>> >>>Contribute your unused CPU cycles to a good cause: >>>http://folding.stanford.edu/ >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: Sunday, November 07, 2004 2:03 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] Modules and libraries in Office >>> >>> >>>In Excel you can store functions and modules as Public in .xla >>>files. Old Excel pre 97 didn't store the code in xla it looked like >>>an mde file. Matter of fact you can call these .xla files from >>>Access. I have called functions from the Excel Statistical and >>>Financial Analysis Packs. >>> >>>In Outlook 2000 and any code that you create in the Outlook VBA >>>environment is stored in a file named VBAProject.otm. Even though >>>you can copy the VBAProject.otm file, that's not a good way to >>>distribute Outlook macros company-wide. The recommended method is to >>>create an Outlook or Word COM add-in. Talk to Shamil he has been >>>upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm >>>http://www.outlookcode.com/d/comaddins.htm >>> >>>Word uses templates either user or workgroup (to be shared) in a >>>specific folder A template contain macros or other customizations >>>such as toolbars, it works better from some locations than others. >>>Again these com addin's can be used in place of macro's. see >>>http://word.mvps.org/FAQs/index.htm >>> >>>Just for future reference this method is also partially available >>>under word and excel >>> >>>Under the Tools/References menu in the VBE, you need to check the >>> >>> >>Microsoft >> >> >>>Visual Basic for Applications Extensibility 5.3 object library. >>>Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program >>>Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB >>> >>> >>>The following code exports the contents of the Code Module to a file >>> >>> >>called >> >> >>>test.bas. This can be run from Word or Excel >>> >>>Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test >>>.b >>>as") >>>I think you can also import code this way but never tried it or got it >>>to work or something. >>> >>>John W. Colby wrote: >>> >>> >>> >>>>In Access we use MDA/Es to store libraries of reusable code. Is >>>>there an equivalent for Word / Excel / Outlook etc (the rest of >>>>Office)? Do these other platforms have references like we do in >>>>Access? If so, can you reference an MDA/E to use code in it? >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>>Contribute your unused CPU cycles to a good cause: >>>>http://folding.stanford.edu/ >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>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 >> >> >> > > > -- 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 Erwin.Craps at ithelps.be Tue Nov 9 02:23:31 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 09:23:31 +0100 Subject: [AccessD] OT: Powerpoint Autoexec? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54FE@stekelbes.ithelps.local> Hehe, long search. Conclusion, there no such thing as a autoexec in a Powerpoint presentation. A workaround is to create a add-in which can contain a Autorun function... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 09, 2004 5:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Powerpoint Autoexec? Powerpoint mvps http://www.mvps.org/links.html#PowerPoint Here is how to start from Access http://www.mvps.org/skp/vb/vbppt001.htm or look through here http://www.mvps.org/links.html#PowerPoint Erwin Craps - IT Helps wrote: >How can I automaticaly run a VBA sub routine in Powerpoint when the >presentation is loaded??? >Like the auotexec macro in Access. > >thx > > > >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 > > > > -- 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 pedro at plex.nl Tue Nov 9 10:03:50 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 09 Nov 2004 10:03:50 (MET) Subject: [AccessD] difficult query?? Message-ID: <200411090903.iA993owv021305@mailhostC.plex.net> Hello Eric, it doesn't matter how this is done, as a query expression or in code. Only i don't have an idea how to do this. Pedro Janssen In antwoord op: > From: "StaRKeY" > To: "'Access Developers discussion and problem solving'" > Date: Mon, 8 Nov 2004 23:13:22 +0100 > Subject: RE: [AccessD] difficult query?? > > > Hi Pedro, > > Must this be done in SQL/query or are you allowed to use a loop? > If you can use a loop I'd use the number field in a nested loop (eg. 1 to > nr.) to add all records into a new table having the numberfield filled with > 'X. > > > Regards, > Eric Starkenburg > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen > Verzonden: maandag 8 november 2004 22:48 > Aan: AccessD at databaseadvisors.com > Onderwerp: [AccessD] difficult query?? > > Hello Group, > > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount > of records of the value of field Number in a new table. And the value of > field [Number] must change into "X". All other fields must also be present. > > for example > > i have > tblA > > ID fieldA Number etc etc etc > 1 A 3 > > > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > > Can this been done? > > Thanks > > Pedro Janssen > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet besmet. > > > Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 > Getest op: 8-11-2004 23:13:21 > avast! auteursrecht (c) 2000-2004 ALWIL Software. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Tue Nov 9 10:04:04 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 09 Nov 2004 10:04:04 (MET) Subject: [AccessD] difficult query?? Message-ID: <200411090904.iA9944lu021323@mailhostC.plex.net> Hello Eric, it doesn't matter how this is done, as a query expression or in code. Only i don't have an idea how to do this. Pedro Janssen In antwoord op: > From: "StaRKeY" > To: "'Access Developers discussion and problem solving'" > Date: Mon, 8 Nov 2004 23:13:22 +0100 > Subject: RE: [AccessD] difficult query?? > > > Hi Pedro, > > Must this be done in SQL/query or are you allowed to use a loop? > If you can use a loop I'd use the number field in a nested loop (eg. 1 to > nr.) to add all records into a new table having the numberfield filled with > 'X. > > > Regards, > Eric Starkenburg > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen > Verzonden: maandag 8 november 2004 22:48 > Aan: AccessD at databaseadvisors.com > Onderwerp: [AccessD] difficult query?? > > Hello Group, > > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount > of records of the value of field Number in a new table. And the value of > field [Number] must change into "X". All other fields must also be present. > > for example > > i have > tblA > > ID fieldA Number etc etc etc > 1 A 3 > > > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > > Can this been done? > > Thanks > > Pedro Janssen > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet besmet. > > > Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 > Getest op: 8-11-2004 23:13:21 > avast! auteursrecht (c) 2000-2004 ALWIL Software. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From gustav at cactus.dk Tue Nov 9 05:02:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:02:45 +0100 Subject: [AccessD] A2K, Export to Excel In-Reply-To: References: Message-ID: <6811558249.20041109120245@cactus.dk> Hi Francisco Try setting the format property of the field in the query to "Number" and two decimals. If this doesn't help, you may need to fall back to use Format() in an expression. /gustav > A friend has a query, and is exporting the results to an excel file, > for some reason the numeric (dollar) values are converted to string in > excel (the single ' quote problem) it's easy enough to convert excel > to see it as a numeric but why? > thanks, > -- > -Francisco From gustav at cactus.dk Tue Nov 9 05:06:59 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:06:59 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Message-ID: <14411812815.20041109120659@cactus.dk> Hi Joe "Bad" may tend to be too strong. At least no one would call you a "bad boy" for this merit only. How about unnecessary? /gustav > Is it bad for to store the actual data, when using text, if they all share > the same prefix? From gustav at cactus.dk Tue Nov 9 05:56:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:56:57 +0100 Subject: [AccessD] difficult query?? In-Reply-To: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> References: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Message-ID: <17114810796.20041109125657@cactus.dk> Hi Pedro > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other > fields must also be present. > for example > i have > tblA > ID fieldA Number etc etc etc > 1 A 3 > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > Can this been done? Yes. Create a table, tbzMultiply, with one integer field, Factor, and create records from 1 to 25 or more, say, 100. Then use: SELECT tblA.ID, tblA.FieldA, ... tblA.FieldZ, "X" AS [Number] FROM tblA, tbzMultiply WHERE (tbzMultiply.Factor Between 1 And tblA.[Number]) ORDER BY tblA.ID; Note the missing join. This is a Cartesian (multiplying) query. /gustav From Susan.Klos at fldoe.org Tue Nov 9 07:12:41 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Tue, 9 Nov 2004 08:12:41 -0500 Subject: [AccessD] Missing Months in a crosstab query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73940@doesefpeml02.eus.fldoe.int> I may have asked this before Jim and I am sorry for the repetition. I have been gone for a week or so and am just now trying to sort through my emails. I have printed your reply now and will use it right away to see how it works. Thanks for your reply and my apologies to all for the duplicate question. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -----Original Message----- Date: Mon, 8 Nov 2004 13:09:23 -0600 From: "Hale, Jim" Subject: RE: [AccessD] Missing months in a crosstab query To: "'Access Developers discussion and problem solving'" Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203 at corp-es01.fleetpride.com> Content-Type: text/plain; charset="iso-8859-1" Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale From carbonnb at gmail.com Tue Nov 9 08:45:11 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 9 Nov 2004 09:45:11 -0500 Subject: [AccessD] Word Docs Bookmark Check In-Reply-To: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> References: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> Message-ID: On Tue, 9 Nov 2004 16:19:43 +1100, ACTEBS wrote: > Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... Vlad, I'm not sure how you are correlating your bookmarks with what the user chooses, but you can use a line like: doc.Bookmarks.Exists("BookmarkName") to see if the bookmark exists in the document that you are working with, assuming of course, that the doc variable references the Word document that you are working with. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From actebs at actebs.com.au Tue Nov 9 09:14:13 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 10 Nov 2004 02:14:13 +1100 Subject: [AccessD] Word Docs Bookmark Check Message-ID: <2025BB6F17FCB54791F23CD505583328041BD2@starfleet.unknown.local> Brian, I wish I had known about the Exists property. I figured out a solution where I created a table that housed the names of the bookmarks I was looking for, then I pass the recordset to the function and if it errors out with 5941 I trap it and know the BM is not there. It's quick and dirty, but does the job. The result is the following: (Hopefully it will help someone else) Function FindBMark(strWordDocPath As String, mRst As DAO.Recordset) As Boolean On Error GoTo Err_FindBMark Dim WordObj As Word.Application FindBMark = True gBMark = True Set WordObj = CreateObject("Word.Application") WordObj.Documents.Open strWordDocPath WordObj.Visible = False ' Find the bookmark mRst.MoveFirst Do Until mRst.EOF With mRst WordObj.ActiveDocument.Bookmarks(!FieldToCheck).Select End With mRst.MoveNext Loop ' Close the document. WordObj.ActiveDocument.Close ' Quit Microsoft Word and clean up WordObj.Quit Set WordObj = Nothing Exit_FindBMark: Exit Function Err_FindBMark: Select Case Err Case 5941 FindBMark = False gBMark = False WordObj.ActiveDocument.Close WordObj.Quit Set WordObj = Nothing Case Else MsgBox Err.Description Resume Exit_FindBMark End Select End Function Thanks Brian, I'll use your suggestion somewhere else in the app, you've saved me a bit of coding. Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, 10 November 2004 1:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Word Docs Bookmark Check On Tue, 9 Nov 2004 16:19:43 +1100, ACTEBS wrote: > Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... Vlad, I'm not sure how you are correlating your bookmarks with what the user chooses, but you can use a line like: doc.Bookmarks.Exists("BookmarkName") to see if the bookmark exists in the document that you are working with, assuming of course, that the doc variable references the Word document that you are working with. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Nov 9 09:38:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 10:38:40 -0500 Subject: [AccessD] event identification Message-ID: <20041109153909.LYYS2451.imf21aec.mail.bellsouth.net@SUSANONE> Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. From JColby at dispec.com Tue Nov 9 09:52:08 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 10:52:08 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF961@DISABILITYINS01> Not as far as I know. That would be handy though. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 10:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] event identification Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Nov 9 09:57:04 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Nov 2004 09:57:04 -0600 Subject: [AccessD] Remote Queries In-Reply-To: <22823002.1099948104142.JavaMail.root@sniper12.usinternet.com> Message-ID: <000001c4c674$c255ded0$de1811d8@danwaters> For more information on Remote Queries, you can go to: http://www.vb123.com/Toolshed/02_accvb/remotequeries.htm What I've done is to create a function that defines the path to the BE db. Each remote query uses that function. So if the path to the BE changes, I only need to change it in one place. For multiple BE's you could set up multiple functions. Jim - The ADO connection appears, for my purposes, to be equivalent. However this is an example I will keep! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 2:52 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remote Queries Just a note: There might be a better way to handle access to the remote database. It will not solve the problem if the database location is changed but it will handle the security issue. See: http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDB ProviderForMicrosoftJet for ADO connection string Set variables like: Dim gstrConnection As String Dim gconMYRemoteDB As ADODB.Command Dim strSQL as String Public rsMyRecordset As ADODB.Recordset gstrConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Databases\Process.mdb;" & _ "Jet OLEDB:System Database=MySystem.mdw", _ "myUsername", "myPassword" Set gconMYRemoteDB = New ADODB.Command With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "Select * from MyTable Where MyFirstField = 1" .CommandType = adCmdText End With ...or... if you are using a query from the remote DB that has a parameter you would use something like this... With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "qryMyQueryName" .CommandType = adCmdStoredProc .Parameters.Append .CreateParameter("NameofParameterToFill", adChar, adParamInput, 10, strParameterValueToPass) End With 'To fill a recordset Set rsMyRecordset = New ADODB.Recordset With rsMyRecordset .CursorLocation = adUseClient ' Note; dynamic and record locking. Mandatory for multi-user ' environments as MDBs are not as sophisticated as SQL servers ' and that implies code to manage record data changes or conflicts. .Open gconMYRemoteDB, , adOpenDynamic, adLockOptimistic If .BOF = False Or .EOF = False Then .MoveLast End With ...or to simply execute a command... strSQL = "INSERT INTO MyTable ( MyField1, MyField2 ) " & _ "VALUES(" & Str(Variable1) & ", '" & Variable2 & "')" gconMYRemoteDB.Execute strSQL Set gconMYRemoteDB = Nothing This way is ideal as you can have as many DBs open as you wish (within system limits of course), all at once. This also manages the issues of security. Hopefully that DBs do not wander around to frequently so that their locations have to be continually managed. (Note that previous was done from memory with limited reliability.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, November 08, 2004 7:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remote Queries There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 10:00:06 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Nov 2004 10:00:06 -0600 Subject: [AccessD] event identification In-Reply-To: <26791971.1100015020089.JavaMail.root@sniper12.usinternet.com> Message-ID: <000101c4c675$2ebeb560$de1811d8@danwaters> I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. Rats! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, November 09, 2004 9:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] event identification Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Tue Nov 9 10:28:57 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 9 Nov 2004 10:28:57 -0600 Subject: [AccessD] Missing Months in a crosstab query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233720B@corp-es01.fleetpride.com> I didn't intend for my reply to sound harsh, sorry. I was only curious whether my solution had worked. I hope so. Regards, Jim Hale -----Original Message----- From: Klos, Susan [mailto:Susan.Klos at fldoe.org] Sent: Tuesday, November 09, 2004 7:13 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Missing Months in a crosstab query I may have asked this before Jim and I am sorry for the repetition. I have been gone for a week or so and am just now trying to sort through my emails. I have printed your reply now and will use it right away to see how it works. Thanks for your reply and my apologies to all for the duplicate question. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -----Original Message----- Date: Mon, 8 Nov 2004 13:09:23 -0600 From: "Hale, Jim" Subject: RE: [AccessD] Missing months in a crosstab query To: "'Access Developers discussion and problem solving'" Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203 at corp-es01.fleetpride.com> Content-Type: text/plain; charset="iso-8859-1" Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From chris at piasd.org Tue Nov 9 10:38:58 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 08:38:58 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856CD@server.domain.local> I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK From Jdemarco at hudsonhealthplan.org Tue Nov 9 10:45:47 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 9 Nov 2004 11:45:47 -0500 Subject: [AccessD] Unused numbers? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486A22@TTNEXCHCL2.hshhp.com> I think Gustav just posted something last week that should meet your need. Search the archive (or your mail client if you keep these posts around for a while) for "Find holes". HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ 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 JColby at dispec.com Tue Nov 9 11:01:59 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:01:59 -0500 Subject: [AccessD] Unused numbers? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF962@DISABILITYINS01> >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Nov 9 11:10:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 12:10:09 -0500 Subject: [AccessD] event identification In-Reply-To: <000101c4c675$2ebeb560$de1811d8@danwaters> Message-ID: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> That's what I thought. Thanks guys! Susan H. I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. From chris at piasd.org Tue Nov 9 11:18:57 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:18:57 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D2@server.domain.local> I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 11:21:11 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 12:21:11 -0500 Subject: [AccessD] event identification In-Reply-To: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. From chris at piasd.org Tue Nov 9 11:27:19 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:27:19 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D3@server.domain.local> Yes that seems to have fixed the problem -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 9:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 11:34:15 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:34:15 -0500 Subject: [AccessD] Unused numbers? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF963@DISABILITYINS01> That is exactly the way to do it. Max (PK) + 1 inserted back in to the PK field. After that the autonumber should pick up at the next value which will no longer collide. John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 11:46:02 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:46:02 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF964@DISABILITYINS01> Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 9 11:53:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 09:53:17 -0800 Subject: [AccessD] event identification Message-ID: Have you looked in Help? The sequence of events for the various objects are there, although you have to hunt for them. From the UI bring up Access help and type "Order of events for database objects" in the answer wizard. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 9 11:55:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 09:55:41 -0800 Subject: [AccessD] event identification Message-ID: Susan, There's a workaround of sorts. You can declare a constant in each routine with the name of the procedure in it and then include that in the error description. Um ... It works best if you insert the constant when you build each of the routines. Going back later can be a lot of work. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 9:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification That's what I thought. Thanks guys! Susan H. I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at piasd.org Tue Nov 9 11:57:27 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:57:27 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D5@server.domain.local> excellent. works as anticipated. thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? That is exactly the way to do it. Max (PK) + 1 inserted back in to the PK field. After that the autonumber should pick up at the next value which will no longer collide. John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmoss111 at bellsouth.net Tue Nov 9 12:01:34 2004 From: jmoss111 at bellsouth.net (jmoss111 at bellsouth.net) Date: Tue, 9 Nov 2004 13:01:34 -0500 Subject: [AccessD] event identification Message-ID: <20041109180134.ZKOA2398.imf18aec.mail.bellsouth.net@mail.bellsouth.net> You can also find an event logger in ADH, in chapter 2 in the 2000 and 2002 versions. > > From: "Colby, John" > Date: 2004/11/09 Tue PM 12:46:02 EST > To: "'Access Developers discussion and problem solving'" > > Subject: RE: [AccessD] event identification > > Susan, > > I have never found a single place to go, particularly for sequence. The > order of events can get really strange, particularly if you throw in form / > subform loads, subform enter / exit etc. In the Access help somewhere there > is a generic order of events for the form events, and the control events, > but it definitely cannot tell the whole story. > > As far as what's going on behind the scenes... you don't even want to know. > Now you get into things like mouse clicks where Windows hands the mouse > event to Access which translates it into a form / control event. Normally > Windows directly hands a mouse event to the window the mouse is inside of - > Window meaning a window object, anything square. That object has to decide > how to handle the click. Objects inside of Access are not true windows to > windows, thus the mouse event has to be translated by Access using the > position in the Access window etc. > > Similarly key down/up/press... is it handled by the form or by the control? > What if the control should but doesn't? (it ripples up to the form AFAIK). > > Events are a rather deep subject. > > I think I have a widget on my site that uses the control classes and form > class to debug.print all the events that fire, in the order fired as you do > anything in the form. If you want to use it I will need to go look around > and see what it is called. It was part of the lecture series I think. > > John W. Colby > The DIS Database Guy > > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Tuesday, November 09, 2004 12:21 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] event identification > > > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > That's what I thought. Thanks guys! > > Susan H. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 13:01:48 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 9 Nov 2004 14:01:48 -0500 Subject: [AccessD] event identification In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF964@DISABILITYINS01> Message-ID: John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 13:17:27 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 14:17:27 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF965@DISABILITYINS01> Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 13:53:06 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 9 Nov 2004 13:53:06 -0600 Subject: [AccessD] event identification Message-ID: <100F91B31300334B89EC531C9DCB08653F5EA1@tccexch01.tappeconstruction.net> Access controls reuse a single floating window that can be accessed by handle when the control receives the focus, using the GetFocus() API call. Access forms are true windows (OForm window class), and have a built-in hWnd property that is available at all times. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Tue Nov 9 14:30:07 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 12:30:07 -0800 Subject: [AccessD] event identification Message-ID: You can definitely get the hWnd of a control that has the focus, John. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 09, 2004 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 15:12:58 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 22:12:58 +0100 Subject: [AccessD] A2K, Export to Excel Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> Aha, yes, know that prob. Export without formatting and openening excel options. Just straight in to a file... Problem solved. Changing the cell format does not solve this issue. For me this is a bug that is present since A2K Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 09, 2004 12:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K, Export to Excel Hi Francisco Try setting the format property of the field in the query to "Number" and two decimals. If this doesn't help, you may need to fall back to use Format() in an expression. /gustav > A friend has a query, and is exporting the results to an excel file, > for some reason the numeric (dollar) values are converted to string in > excel (the single ' quote problem) it's easy enough to convert excel > to see it as a numeric but why? > thanks, > -- > -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Nov 9 15:24:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 Nov 2004 15:24:20 -0600 Subject: [AccessD] event identification Message-ID: <123701F54509D9119A4F00D0B747349016D075@main2.marlow.com> Not really, that is the hWnd of a generic window, which moves to whatever control has the focus. It's not unique to the control. That is in Access though. VB form controls have their own hWnd. Subforms, however, do have their own hWnd, so they are the exception to the rule. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, November 09, 2004 2:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification You can definitely get the hWnd of a control that has the focus, John. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 09, 2004 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 9 14:50:07 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 9 Nov 2004 21:50:07 +0100 Subject: [AccessD] difficult query?? References: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> <17114810796.20041109125657@cactus.dk> Message-ID: <006f01c4c6a7$04ba1ac0$f8c581d5@pedro> Thanks Gustav, it works perfect. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 09, 2004 12:56 PM Subject: Re: [AccessD] difficult query?? > Hi Pedro > > > i have a table [tblA] with 20 fields. > > One of these fields [Number] has a value from 1 to 25. > > I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other > > fields must also be present. > > > for example > > > i have > > tblA > > > ID fieldA Number etc etc etc > > 1 A 3 > > > > i need > > ID fieldA Number etc etc etc > > 1 A X > > 1 A X > > 1 A X > > > Can this been done? > > Yes. Create a table, tbzMultiply, with one integer field, Factor, and > create records from 1 to 25 or more, say, 100. > > Then use: > > SELECT > tblA.ID, > tblA.FieldA, > ... > tblA.FieldZ, > "X" AS [Number] > FROM > tblA, > tbzMultiply > WHERE > (tbzMultiply.Factor Between 1 And tblA.[Number]) > ORDER BY > tblA.ID; > > Note the missing join. This is a Cartesian (multiplying) query. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From fhtapia at gmail.com Tue Nov 9 18:10:12 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 9 Nov 2004 16:10:12 -0800 Subject: [AccessD] A2K, Export to Excel In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> Message-ID: arg. well I've moved on since that but I'm still curious why this occurs.. it is very frustrating.. :| On Tue, 9 Nov 2004 22:12:58 +0100, Erwin Craps - IT Helps wrote: > Aha, yes, know that prob. > > Export without formatting and openening excel options. Just straight in > to a file... > Problem solved. > Changing the cell format does not solve this issue. > For me this is a bug that is present since A2K > > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Tuesday, November 09, 2004 12:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K, Export to Excel > > Hi Francisco > > Try setting the format property of the field in the query to "Number" > and two decimals. If this doesn't help, you may need to fall back to use > Format() in an expression. > > /gustav > > > A friend has a query, and is exporting the results to an excel file, > > for some reason the numeric (dollar) values are converted to string in > > > excel (the single ' quote problem) it's easy enough to convert excel > > to see it as a numeric but why? > > > thanks, > > -- > > -Francisco > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From fhtapia at gmail.com Tue Nov 9 18:14:27 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 9 Nov 2004 16:14:27 -0800 Subject: [AccessD] event identification In-Reply-To: <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> References: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From cfoust at infostatsystems.com Tue Nov 9 18:45:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 16:45:45 -0800 Subject: [AccessD] event identification Message-ID: I use 4.0 in .Net and love it! It's a bit different from the 3.0 version, which I still use in Access, but it's well worth the minimal cost, and the author just patched it for a problem I encountered and reported with find and replace. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 4:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just need to check things before I go on record and in my usual > search-challenged way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Tue Nov 9 19:54:49 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 10 Nov 2004 12:54:49 +1100 Subject: [AccessD] Adding history cycles of data Message-ID: <000e01c4c6c8$439fc700$6401a8c0@user> I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath From accessd at shaw.ca Tue Nov 9 21:06:41 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 09 Nov 2004 19:06:41 -0800 Subject: [AccessD] Adding history cycles of data In-Reply-To: <000e01c4c6c8$439fc700$6401a8c0@user> Message-ID: Hi Kath: Just a comment; 6 new tables a quarter? Why? I can see adding some historical summary data to a special set of tables, to maybe aid in fast processing for a complex set of calculations but continually generating table after table seems to be a waste. That is where quering are used. A number of years ago I took over a site with about ninety forms and I can not remember how many queries, macros but the list was pretty staggering. The system is now running on less than twenty non-duplicated forms and the only thing that increased has been the data and number of reports. My recommendation is try to keep the application as lean as possible. Think of the poor programmer that has to manage it all...and it may be you! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Tuesday, November 09, 2004 5:55 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Adding history cycles of data I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Tue Nov 9 21:26:10 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 10 Nov 2004 14:26:10 +1100 Subject: [AccessD] Adding history cycles of data References: Message-ID: <001c01c4c6d5$06745f00$6401a8c0@user> Jim - the business is in stockbroking. The main purpose of the system currrently is to provide valuations of portfolios to approx. 300 clients who can each hold up to 19 accounts. At the moment the system is fairly lean on data storage because it uses a daily refresh principal, ie. each day all stocks, holdings and prices are discarded, and live market data is read in to the system. Queries and reports read the new data to provide up to date valuations. This process will continue to take place, but every 3 months the client wants to 'freeze' that position and keep it as a position for that quarter. Every quarter a new position will be 'frozen' and a history will be built. My client requires the historical positions to be editable. The 6 tables will hold details of clients at that point in time, accounts held by them at that time, and all investments held at that time, as well as prices held for those stocks at that time. For this reason, a summary just won't be enough. I agree that the ongoing maintenance and speed / efficiency has to be uppermost on the design decision. I would like to keep as few tables as possible - but if I throw all historical data out to one set of 6 history tables is it the most efficient? Another option is to only hold a table of report cycle id's in the BE - with a link to an external mdb which holds all the actual data. I am still thinking it through and look forward to seeing what others think... Kath ----- Original Message ----- From: Jim Lawrence (AccessD) To: Access Developers discussion and problem solving Sent: Wednesday, November 10, 2004 2:06 PM Subject: RE: [AccessD] Adding history cycles of data Hi Kath: Just a comment; 6 new tables a quarter? Why? I can see adding some historical summary data to a special set of tables, to maybe aid in fast processing for a complex set of calculations but continually generating table after table seems to be a waste. That is where quering are used. A number of years ago I took over a site with about ninety forms and I can not remember how many queries, macros but the list was pretty staggering. The system is now running on less than twenty non-duplicated forms and the only thing that increased has been the data and number of reports. My recommendation is try to keep the application as lean as possible. Think of the poor programmer that has to manage it all...and it may be you! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Tuesday, November 09, 2004 5:55 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Adding history cycles of data I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Tue Nov 9 21:35:56 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 9 Nov 2004 20:35:56 -0700 Subject: [AccessD] Alternating background color in continuous forms? Message-ID: <157240-220041131033556327@christopherhawkins.com> Greetings, all! I want to do something kind of fun. I am trying to figure out how to do alternating background colors in a continuous form. I was looking at conditional formatting in Access 2002, but am not sure how to work out an expression that will do the trick. I am also looking a doing it programmatically, but I think I'd have to do some heavy subclassing, which isn't worth the work just for eye candy. Surely someone must have done this before. Can anyone either offer sugestons on how to figure it out, or post actual code? I'll be sure to give proper credit when it's time to submit the results to the UI Hall of Fame. ;) -Christopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From stuart at lexacorp.com.pg Tue Nov 9 22:09:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 10 Nov 2004 14:09:12 +1000 Subject: [AccessD] Alternating background color in continuous forms? In-Reply-To: <157240-220041131033556327@christopherhawkins.com> Message-ID: <41922108.8351.46C490D@lexacorp.com.pg> On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > > Surely someone must have done this before. Can anyone either offer > sugestons on how to figure it out, or post actual code? I'll be sure > to give proper credit when it's time to submit the results to the UI > Hall of Fame. ;) > You mean here :-) http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/color.htm -- Stuart From clh at christopherhawkins.com Tue Nov 9 22:41:06 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 9 Nov 2004 21:41:06 -0700 Subject: [AccessD] Alternating background color in continuous forms? Message-ID: <184670-22004113104416249@christopherhawkins.com> HAHAHAHAHAHAHAHA sheddup. :p ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Alternating background color in continuous forms? Date: Wed, 10 Nov 2004 14:09:12 +1000 >On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > >> >> Surely someone must have done this before. Can anyone either offer >> sugestons on how to figure it out, or post actual code? I'll be >sure >> to give proper credit when it's time to submit the results to the >UI >> Hall of Fame. ;) >> > >You mean here :-) > >http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/col >or.htm > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From dmcafee at pacbell.net Tue Nov 9 23:51:27 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 9 Nov 2004 21:51:27 -0800 Subject: [AccessD] Alternating background color in continuous forms? In-Reply-To: <184670-22004113104416249@christopherhawkins.com> Message-ID: Access 2000 and later has Conditional formatting Access 97 and earlier will needed to use a textbox in the background. Check out Duane Hookem's BRdemo database: http://www.invisibleinc.com/download.cfm?filFilID=7 HTH David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, November 09, 2004 8:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Alternating background color in continuous forms? HAHAHAHAHAHAHAHA sheddup. :p ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Alternating background color in continuous forms? Date: Wed, 10 Nov 2004 14:09:12 +1000 >On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > >> >> Surely someone must have done this before. Can anyone either offer >> sugestons on how to figure it out, or post actual code? I'll be >sure >> to give proper credit when it's time to submit the results to the >UI >> Hall of Fame. ;) >> > >You mean here :-) > >http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/col >or.htm > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Wed Nov 10 03:19:38 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 10 Nov 2004 10:19:38 +0100 Subject: [AccessD] OT: Where is 1$? Message-ID: <005701c4c706$777983c0$0100a8c0@razvoj> Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? From viner at EUnet.yu Wed Nov 10 03:19:38 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 10 Nov 2004 10:19:38 +0100 Subject: [AccessD] OT: Where is 1$? Message-ID: <007201c4c706$a95ea5a0$0100a8c0@razvoj> Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? From serbach at new.rr.com Wed Nov 10 05:16:26 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 10 Nov 2004 05:16:26 -0600 Subject: [AccessD] A2K/AXP Repllcation problem In-Reply-To: <20041107045310.1540446425.serbach@new.rr.com> References: <20041105132148.1553325418.serbach@new.rr.com> <20041107045310.1540446425.serbach@new.rr.com> Message-ID: <20041110051626.1518568599.serbach@new.rr.com> Dear Group, My synchronization problem turned out to be simply a repair/compact problem. As soon as I repaired the databases on the laptops, I was able to synch them with the main database in my customer's home office. Steve Erbach Neenah, WI > ------------Original Message------------ > From: "Steven W. Erbach" > To: "Access Developers discussion and problem solving" > Date: Sun, Nov-7-2004 5:02 AM > Subject: Re: [AccessD] A2K/AXP Repllcation problem > > Well, I found something over on Experts Exchange that may relate to > this problem. It's a Microsoft KB article, Q301474. We'll see. > > Steve Erbach > Neenah, WI > From actebs at actebs.com.au Wed Nov 10 07:13:11 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 00:13:11 +1100 Subject: [AccessD] Treeview - Again : ) Message-ID: <2025BB6F17FCB54791F23CD505583328041BD3@starfleet.unknown.local> Guys, Arthur's treeview is great, lots of examples on how to use it. The thing I can't figure out is how to select an item within the treeview for the user. For example: The user wants to edit a record he selects the record he wants to edit and I populate the text fields etc for him, but I can't get the treeview to highlight the activity item it relates to. Basically, I want to expand the treeview and highlight the item in the treeview that corresponds to the selected record. Things I have tried is: a) Tvw.nodes.value = whatever b) set tvw.nodes = whatever c) tvw.nodes.selecteditem = whatever Is there another method? Thanks Vlad From kaupca at chevrontexaco.com Wed Nov 10 07:19:30 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Wed, 10 Nov 2004 07:19:30 -0600 Subject: [AccessD] OT: Where is 1$? Message-ID: <1375769556091B4DAABC159F944CA1BB07A2B2@bocnte2k4.hou150.chevrontexaco.net> The three cowboys were dunk by now and didn't care anyway. However Cowboy one got $3 back ($2 plus $1) and each of the other 2 got $1 back. $9 + $9 + $7 +$5 = #30.00. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Wednesday, November 10, 2004 3:20 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Where is 1$? Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Wed Nov 10 09:28:12 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 02:28:12 +1100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <2025BB6F17FCB54791F23CD505583328041BD4@starfleet.unknown.local> Guys, I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" The code is as follows: With m_objWord .ActiveDocument.SaveAs strWrdPath If gBoolPrintOrNot = True Then .ActiveDocument.PrintOut DoEvents End If .ActiveDocument.Close End With m_objWord.Quit Set m_objDoc = Nothing Set m_objWord = Nothing It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... Any guidance much appreciated... Vlad From DWUTKA at marlow.com Wed Nov 10 09:56:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 10 Nov 2004 09:56:33 -0600 Subject: [AccessD] OT: Where is 1$? Message-ID: <123701F54509D9119A4F00D0B747349016D076@main2.marlow.com> Actually, it's $25 for the whiskey (which is why they got five back). $9 for each cowboy, which means they paid $27, and the barman kept a $2 tip, so 27-2=25 Drew -----Original Message----- From: Ervin Brindza [mailto:viner at EUnet.yu] Sent: Wednesday, November 10, 2004 3:20 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Where is 1$? Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Wed Nov 10 09:48:06 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 10 Nov 2004 10:48:06 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF969@DISABILITYINS01> I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ 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 Nov 10 09:12:17 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Nov 2004 16:12:17 +0100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <20041110161214.5FF5E256047@smtp.nildram.co.uk> Vlad I know the problem. What I did, rightly or wrongly, was omit the .Quit but still set the Word object to Nothing. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Group E-mail Subject: [AccessD] Wait For Word To Finish Printing Date: 10/11/04 15:58 > > Guys, > > I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > > The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > > It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > > I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > > Any guidance much appreciated... > > Vlad > > > -- > _______________________________________________ > 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 Mark.Mitsules at ngc.com Wed Nov 10 10:17:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 10 Nov 2004 11:17:51 -0500 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: My memory is a little fuzzy on this issue. Will this work? m_objWord.Options.PrintBackground = True Mark -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Wednesday, November 10, 2004 10:28 AM To: Access Group (E-mail) Subject: [AccessD] Wait For Word To Finish Printing Guys, I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" The code is as follows: With m_objWord .ActiveDocument.SaveAs strWrdPath If gBoolPrintOrNot = True Then .ActiveDocument.PrintOut DoEvents End If .ActiveDocument.Close End With m_objWord.Quit Set m_objDoc = Nothing Set m_objWord = Nothing It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... Any guidance much appreciated... Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 10 10:20:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 10 Nov 2004 11:20:55 -0500 Subject: [AccessD] If Then Else to Function Message-ID: I can not find any references to this on line or in books. I have tasks that fall into various buckets for users to process as they move through an approval process. The existing database defines these buckets using if..then..else statements across more forms and reports than I can name. Moving to the big time, how do I convert a statement show below to a function? This example defines if a task is in the AS Final Review queue. TaskStatus: IIf([RequestType] Not In ('Field Problem','Site Audit','Product Audit','Product Audit/Field Problem') And [Section] In (2,3) And [Status]='Open' And Not IsNull([ASSectCompletedDate]) And [ysnASTestRequired]=0 And [ysnASQARequired]=0,"In AS Final Review","Not In AS Final Review") From dwaters at usinternet.com Wed Nov 10 10:50:58 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 10 Nov 2004 10:50:58 -0600 Subject: [AccessD] If Then Else to Function In-Reply-To: <9452851.1100104133265.JavaMail.root@sniper4.usinternet.com> Message-ID: <001101c4c745$743074a0$de1811d8@danwaters> Karen, With the statement below, you are now in 'Final Review' status, not 'Open' status. I do this a lot. As you go through the process, the record needs to change status. For example, a Nonconforming Material record might go through the following status sequence: Description, Disposition, Approval (or Final Review), Finish, Closed. All of these are 'Open' except of course for Closed. As people enter more information, your code can change the record status as needed. This makes your code easier to use, and your users/managers can more easily understand where the process is if the status is displayed on-screen. For your reports, make a screen that will build a SQL statement based on the user's criteria. Then use that SQL statement in the 'Where' argument when the open the report. The form can have a combobox for each bucket. This gives you one report that can come close to being all things to all people. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 10, 2004 10:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] If Then Else to Function I can not find any references to this on line or in books. I have tasks that fall into various buckets for users to process as they move through an approval process. The existing database defines these buckets using if..then..else statements across more forms and reports than I can name. Moving to the big time, how do I convert a statement show below to a function? This example defines if a task is in the AS Final Review queue. TaskStatus: IIf([RequestType] Not In ('Field Problem','Site Audit','Product Audit','Product Audit/Field Problem') And [Section] In (2,3) And [Status]='Open' And Not IsNull([ASSectCompletedDate]) And [ysnASTestRequired]=0 And [ysnASQARequired]=0,"In AS Final Review","Not In AS Final Review") -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 10 11:16:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Nov 2004 09:16:46 -0800 Subject: [AccessD] event identification Message-ID: Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Wed Nov 10 11:32:41 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 10 Nov 2004 12:32:41 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF96A@DISABILITYINS01> I downloaded the 3.0 for VBA. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 10, 2004 12:17 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 10 11:55:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Nov 2004 09:55:10 -0800 Subject: [AccessD] event identification Message-ID: Try the 4.0 too. You'll love it in .Net. It drove me crazy not to have my favorite tools (like the Find/replace and the ability to sort procedure and close windows) there, so I was ecstatic when they released 4.0 and was quite willing to pay the minimal price for it. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 9:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I downloaded the 3.0 for VBA. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 10, 2004 12:17 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 10 12:47:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 Nov 2004 10:47:13 -0800 Subject: [AccessD] Wait For Word To Finish Printing References: <2025BB6F17FCB54791F23CD505583328041BD4@starfleet.unknown.local> Message-ID: <41926231.2060405@shaw.ca> Word normally prints in the background, so you might close Word while it is still generating the print file. There are two ways to avoid this 1. Set the Background parameter of the PrintOut method to False, so that the next line of code doesn't execute until the print file has been spooled to the printer queue. ActiveDocument.Printout Background:=False 2. Check the BackgroundPrintingStatus property of Word's Application object, and don't close Word until the value reaches zero. To make sure that you aren't unnecessarily delaying the printing process by eating cycles within the same thread, use a timer that triggers a check every few seconds. Generally, option #1 is safer, because Word can sometimes get a bit confused if asked to background print too many documents at once. ACTEBS wrote: >Guys, > >I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > >The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > >It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > >I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > >Any guidance much appreciated... > >Vlad > > > > -- Marty Connelly Victoria, B.C. Canada From Mark.Mitsules at ngc.com Wed Nov 10 14:20:04 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 10 Nov 2004 15:20:04 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Group, I have two tables I would like to join. Tbl1.Fld1 contains a variable-length string, Tbl2.Fld2 contains the same variable-length string concatenated with a variable-length suffix. Any suggestions on how to proceed? Is there an elegant solution? Mark From Susan.Klos at fldoe.org Wed Nov 10 14:27:21 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Wed, 10 Nov 2004 15:27:21 -0500 Subject: [AccessD] connecting to a network drive for the back end Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> I have a database which has the FE on each machine and the BE on a network drive that is different from most of the rest of the network. My boss logs into the network drive with a different password than she uses for her regular network login. In order for her to have access to this drive she needs to open it and when she gets the new login window put in her password. The problem is that when she opens the FE it cannot find the "T" drive because she hasn't gotten access to it yet. She only goes to the T drive when necessary to retrieve data. She does not want to have to take this extra step. Sometimes she may have opened the T drive, but most of the time probably not. My problem is: How do I call the T drive login window for her so she can put in the password whenever she opens the FE on her computer? The application is set up such that whenever a user opens the FE on their machine, the application grabs the network login ID. I think I could pull that password but it is different that the T drive password. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From clh at christopherhawkins.com Wed Nov 10 14:31:59 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 10 Nov 2004 13:31:59 -0700 Subject: [AccessD] Color the tab heads in a Tab Control? Message-ID: <157240-2200411310203159140@christopherhawkins.com> Yes, it's another eye-candy inquiry. :p Are the tabs on a tab control color-able? It looks pretty funky to make the body of the tab control one color and leave the tabs themselves battleship gray. -C- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From ssharkins at bellsouth.net Wed Nov 10 14:59:44 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 10 Nov 2004 15:59:44 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <20041110205944.ECRU2429.imf23aec.mail.bellsouth.net@SUSANONE> Is the problem the actual join syntax or the fact that there will never be a match in the two fields? I'm guessing it's the latter, and if that's the case, you could use a query expression to return just the variable-length string (minus the suffix), and then join on that field. Sorry if I'm not understanding the problem. Susan H. Group, I have two tables I would like to join. Tbl1.Fld1 contains a variable-length string, Tbl2.Fld2 contains the same variable-length string concatenated with a variable-length suffix. Any suggestions on how to proceed? Is there an elegant solution? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Nov 10 16:58:00 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Nov 2004 17:58:00 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: References: Message-ID: <41929CF8.7070802@rogers.com> Mitsules, Mark wrote: >Group, > >I have two tables I would like to join. Tbl1.Fld1 contains a >variable-length string, Tbl2.Fld2 contains the same variable-length string >concatenated with a variable-length suffix. > >Any suggestions on how to proceed? Is there an elegant solution? > > >Mark > > At first blush I would try this: SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, LEN(T1.Field1)) Arthur From jmhla at earthlink.net Wed Nov 10 21:10:36 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:10:36 -0800 Subject: [AccessD] CheckDate? In-Reply-To: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Message-ID: <000601c4c79c$07f37d80$6501a8c0@delllaptop> I used to know someone who would only use a calendar control for date input to insure proper date. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Tuesday, November 02, 2004 2:15 AM To: accessd at databaseadvisors.com Subject: [AccessD] CheckDate? Hi group, I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. TIA Sander If Not IsNull(txtExportDate) Then 'Check month part If Mid(txtExportDate, 4, 2) > 12 Then 'incorrect date! Else blnDate = True End If 'Check day part Select Case Left(txtExportDate, 2) Case 31 If (Mid(txtExportDate, 4, 2) = 1) Or _ (Mid(txtExportDate, 4, 2) = 3) Or _ (Mid(txtExportDate, 4, 2) = 5) Or _ (Mid(txtExportDate, 4, 2) = 7) Or _ (Mid(txtExportDate, 4, 2) = 8) Or _ (Mid(txtExportDate, 4, 2) = 10) Or _ (Mid(txtExportDate, 4, 2) = 12) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 30 If (Mid(txtExportDate, 4, 2) = 4) Or _ (Mid(txtExportDate, 4, 2) = 6) Or _ (Mid(txtExportDate, 4, 2) = 9) Or _ (Mid(txtExportDate, 4, 2) = 11) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 28 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'correct date blnDate = True Else 'incorrectdate blnDate = False End If Case 1 To 27 'correct day - month combi blnDate = True Case 29 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'incorrect date blnDate = False Else 'correctdate blnDate = True End If Case Else blnDate = False End Select Else 'Null date Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ vbExclamation, "Onjuiste datum") txtExportDate.SetFocus Exit Sub End If If Not blnDate Then Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ & vbCrLf & "" _ , vbCritical, "Onjuiste datum") txtExportDate.SetFocus Exit Sub Else --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Nov 10 21:15:56 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:15:56 -0800 Subject: [AccessD] Unused numbers? In-Reply-To: <2F7BA03C93D17D48B13C42228C8FDAF27856CD@server.domain.local> Message-ID: <000701c4c79c$c6356470$6501a8c0@delllaptop> It is more trouble. Rarely if ever do you want to reuse a primary field value. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Nov 10 21:18:59 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:18:59 -0800 Subject: [AccessD] Missing months in a cross tab query In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> Message-ID: <000801c4c79d$32e30c30$6501a8c0@delllaptop> Susan, I would have to find my sample but there is a way to force to hard code the 12 months in order for your cross tab. E mail me off list if you need me to find my sample for you. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Monday, November 08, 2004 7:39 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Missing months in a crosstab query I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Nov 11 00:18:40 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 17:18:40 +1100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <2025BB6F17FCB54791F23CD5055833280886C1@starfleet.unknown.local> Marty, Thanks. It fixed my problem. I love this list! Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, 11 November 2004 5:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wait For Word To Finish Printing Word normally prints in the background, so you might close Word while it is still generating the print file. There are two ways to avoid this 1. Set the Background parameter of the PrintOut method to False, so that the next line of code doesn't execute until the print file has been spooled to the printer queue. ActiveDocument.Printout Background:=False 2. Check the BackgroundPrintingStatus property of Word's Application object, and don't close Word until the value reaches zero. To make sure that you aren't unnecessarily delaying the printing process by eating cycles within the same thread, use a timer that triggers a check every few seconds. Generally, option #1 is safer, because Word can sometimes get a bit confused if asked to background print too many documents at once. ACTEBS wrote: >Guys, > >I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > >The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > >It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > >I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > >Any guidance much appreciated... > >Vlad > > > > -- 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 william.thompson1 at att.net Thu Nov 11 00:27:56 2004 From: william.thompson1 at att.net (William Thompson) Date: Wed, 10 Nov 2004 22:27:56 -0800 Subject: [AccessD] server? based trusted connection for multi-front-ends. Acc 200x SQL Server 2000 ; OLEDB.10.0 In-Reply-To: <000801c4c79d$32e30c30$6501a8c0@delllaptop> Message-ID: <200411110627.iAB6RoL19458@databaseadvisors.com> Note that the trusted connection string below does not specify a database, initially. Using authentication on SQL Server, I was itching to get to the bottom of how to query trusted connection (into or from an ADP) from Access to a secure stored procedure running in a secure SQL Svr database - the connection would be established to the server, while the Exec connects via permissions within the sproc to the database (the db would be 'locked down'). I'm not sure if this is the sole domain of Excel 2000+ pivot tables, or if a similarly robust and secure connection can be obtained from Access. The premise is that a Pivot table is run over data that is refreshed frequently - a copy of the raw data is needed behind the scenes to ensure it's captured. I was wanting to eventually get a server based query using Provider=Microsoft.Access.OLEDB.10.0; Data Provider=SQLOLEDB.1 ... somehow instead of the ODBC based connection utlized in the Fabrikami sample on MSDN: reportQuery = "EXECUTE Finance..xlExpenseReport" reportConnection = "ODBC;DRIVER=SQL Server;SERVER=FABRIKAM1;Trusted_Connection=Yes" After having initially explored loading what would apparently be a secure stored procedure (i.e. suser_sname() having exec, select on sproc) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fabrikam/ht ml/odc_ofexpense_report_solution_excel2003template.asp ...and using various Excel examples, particularly... http://www.excelkb.com/article.aspx?id=10132 and its companion article at http://www.excelkb.com/article.aspx?id=10131 ... and at http://vyaskn.tripod.com/row_level_security_in_sql_server_databases.htm I didn't get as far as I wanted to with the code, but I managed to hammer out the Excel based code below - including the sproc - it should work for the benefit of anyone having SQL server and Excel or Access wanting to document schema quickly. Any ideas on how to 'mirror' recordsets i.e. connect a pivot table, then Access for raw underlying data via two connections with the same exec string would be greatly appreciated. The web examples as cited above instruct on how to set up row level permissions quickly (which I think/hope is the purpose of the painstaking focus on trusted connections here and in Access). Private Sub CommencePivot1() ''' Using trusted connection in front-end Dim startDate As String Dim endDate As String Dim currencyCode As String Dim pivotTableName As String Dim invalidDateErrorText As String Dim startDateErrorText As String Dim reportQuery As String Dim reportConnection As String Dim formatCast As String Application.ScreenUpdating = False 'Data input validation SelectASheet ("Sheet1") pivotTableName = "PivotTable1" 'Initialize variables strDatabase = CStr(Trim(InputBox("Enter Database Name to display Schema", "Query Macro", "Test Source"))) reportQuery = "EXECUTE pubs..pr_tmpSchema '" + strDatabase + "'" reportConnection = "ODBC;DRIVER=SQL Server;SERVER=myServer;Trusted_Connection=Yes" On Error GoTo ErrorHandler With ActiveSheet.PivotTables(pivotTableName) .PivotCache.Connection = reportConnection '' Careful not to mash this together with another Pivot table. '' Keep ado and odbc separate (at least in Excel) .PivotCache.CommandText = reportQuery .PivotCache.Refresh End With 'Save input parameters to spreadsheet ActiveSheet.Range("F2").Value = strDatabase ActiveSheet.Range("F3").Value = "Tap Pivot Source" SelectASheet("QTable") ''' would branch another connection rendering the same rst to ''' preferably Access if secure or 2nd front-end ''' ?? CreateQueryTable(reportquery) Application.ScreenUpdating = True exithere: Exit Sub ErrorHandler: MsgBox Err.Number & " - " & Err.Description Resume exithere End Sub Public Sub SelectASheet(ByVal strSheetName As String) Sheets(strSheetName).Select exithere: Exit Sub errhandler: MsgBox Err.Description & " " & "You may want to create or synchronize" Resume exithere End Sub '' -- The Stored Proc follows - may come in handy for documentation '' -- Exec pr_tmpSchema NameOfDatabase //you want documented. '' -- Simulates more or less restricted access CREATE PROC pr_tmpSchema @strDatabaseName varchar(75) As Declare @SQL varchar(8000) Declare @CleanupSQL varchar(8000) Declare @tablename nvarchar(75) IF @@ERROR <> 0 PRINT "ERROR IN DECLARATION" -- I didn't have time to pull this @tablename -- structure out - it does nothing here Select @tablename = 'tmpTemp1' Select @CleanupSQL = ('IF EXISTS (SELECT name FROM sysobjects ' + ' WHERE name = ''' + @tablename + ''' AND type = ''U'') ' + 'DROP TABLE ' + @tablename) EXEC (@CleanupSQL) IF EXISTS (SELECT name FROM sysobjects WHERE name = 'tmpTemp1' AND type = 'U') EXEC ('DROP TABLE ' + @tablename) -- SELECT @strGetDBSQL = 'USE ' + @DBName + ' GO' SET NOCOUNT ON BEGIN SELECT @SQL = ('USE ' + @strDatabaseName + ' Select TABLE_CATALOG = Left(TABLE_CATALOG, 75),' + ' TABLE_SCHEMA = Left(TABLE_SCHEMA, 30), TABLE_NAME = Left(TABLE_NAME, 75),' + 'COLUMN_NAME = Left(COLUMN_NAME, 75),DATA_TYPE = Left(DATA_TYPE, 30), CHARACTER_MAXIMUM_LENGTH = Left(CHARACTER_MAXIMUM_LENGTH, 30),' + 'IS_NULLABLE = Left(IS_NULLABLE, 10), COLUMN_DEFAULT = LEFT(COLUMN_DEFAULT, 255)' + 'From Information_Schema.columns ' + 'Where Table_Name like ''%''' + ' And Table_Name in (Select Table_Name from Information_Schema.Tables WHERE TABLE_TYPE = ''BASE TABLE'')' + ' And Table_Name not like ''dt%''') -- -------------- -- print 'Test4:' -- SELECT @SQL -- -------------- -- ran out of time to explore COLUMN_DEFAULT) -- -------------- EXEC(@SQL) END * * * Bill Thompson, Washington State, U.S. From gustav at cactus.dk Thu Nov 11 04:22:36 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 11:22:36 +0100 Subject: [AccessD] connecting to a network drive for the back end In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> References: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> Message-ID: <1628525408.20041111112236@cactus.dk> Hi Susan You can run a Shell command like: net use T: \\server\share password /user:username /gustav > I have a database which has the FE on each machine and the BE on a network > drive that is different from most of the rest of the network. My boss logs > into the network drive with a different password than she uses for her > regular network login. In order for her to have access to this drive she > needs to open it and when she gets the new login window put in her password. > The problem is that when she opens the FE it cannot find the "T" drive > because she hasn't gotten access to it yet. She only goes to the T drive > when necessary to retrieve data. She does not want to have to take this > extra step. Sometimes she may have opened the T drive, but most of the time > probably not. My problem is: How do I call the T drive login window for her > so she can put in the password whenever she opens the FE on her computer? > The application is set up such that whenever a user opens the FE on their > machine, the application grabs the network login ID. I think I could pull > that password but it is different that the T drive password. From Paul.Rogers at SummitMedia.co.uk Thu Nov 11 04:50:05 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 11 Nov 2004 10:50:05 -0000 Subject: [AccessD] Access with a MySQL database Message-ID: Hi Arthur I'd be very much obliged if you could let us/me know when your words on MsSql are published on a website. Thanks very much for the info here which is most useful. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 28 October 2004 02:54 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access with a MySQL database MartyConnelly wrote: > Something I came across from an ASP perspective > http://www.aspfree.com/c/a/Microsoft-Access/An-Access-Front-End-to-MySQL/ > > Barbara Ryan wrote: > >> Does anyone have any experience using an Access application as a >> front-end to a MySQL database back-end? My client is interested in >> converting the Access back-end to either SQL Server or MySQL. They >> currently do not own SQL Server but are using MySQL in their web >> application. >> >> Any thoughts (advantages, limitations, etc.)? >> >> Thanks, >> Barb Ryan >> >> > Hmph. I thought I answered this already, but it must have been a senior moment. I have been there and done that extensively, for the book (that was cancelled, and will soon re-emerge as a web site) my partner Peter Brawley and I wrote about MySQL. AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Thu Nov 11 05:05:56 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 11 Nov 2004 11:05:56 -0000 Subject: [AccessD] Function No Go Message-ID: A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul From gustav at cactus.dk Thu Nov 11 05:07:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 12:07:07 +0100 Subject: [AccessD] Joining Two Tables In-Reply-To: <41929CF8.7070802@rogers.com> References: <41929CF8.7070802@rogers.com> Message-ID: <4311196319.20041111120707@cactus.dk> Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length string >>concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur From jmhla at earthlink.net Thu Nov 11 07:00:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 11 Nov 2004 05:00:45 -0800 Subject: [AccessD] Function No Go In-Reply-To: Message-ID: <200411111300.iABD0mL10482@databaseadvisors.com> Are you missing library references not being loaded into the new machine? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Thursday, November 11, 2004 3:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Function No Go A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Nov 11 07:13:28 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 08:13:28 -0500 Subject: [AccessD] Function No Go In-Reply-To: Message-ID: As Joe said, it's references. Open a module in design view, click tools/references. Look for any listed as MISSING or BROKEN. If they are, you'll need to figure out why. If none are, check any unchecked reference, close the MDB and Access, re-open and uncheck the reference just checked. Then try a compile. If still no go then a lib needs to be re-registered with regsvr32 (usually it's DAO). Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Rodgers Sent: Thursday, November 11, 2004 6:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Function No Go A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Nov 11 07:35:09 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 08:35:09 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length string >>concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ 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 Nov 11 08:23:06 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 Nov 2004 09:23:06 -0500 Subject: [AccessD] CheckDate? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A278D@xlivmbx21.aig.com> I'm one of those odd people who always use a calendar form (not the MS Active-X control) for date entering, but if you really must allow those whacko users to type a date in a box then what's wrong with this code... Dim bIsValideDate As Boolean bIsValideDate =isDate(txtYourFormControl) If bIsValideDate Then ... Else MsgBox "Can you at least type a valid date in the box! End If Is that sufficiently uncomplex :-) "isDate()" is a built in function. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: Wednesday, November 10, 2004 10:11 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] CheckDate? > > I used to know someone who would only use a calendar control for date > input > to insure proper date. > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: Tuesday, November 02, 2004 2:15 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] CheckDate? > > Hi group, > > I created a routine that checks if a date is correct. Can anybody review > this one? I think that it's unnecessary complex. > > TIA > > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is > verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else > > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 09:05:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 16:05:40 +0100 Subject: [AccessD] SQLiteDB, tiny engine Message-ID: <16625509500.20041111160540@cactus.dk> Hi all For those of you looking for an alternative SQL server engine which will run on both Linux and Windows, have a look here for an Open Source completely free *tiny_tiny* basic engine: http://www.terrainformatica.com/users/george/index.html Note that you will have to manually register the dll. SQLiteDB is a full database engine in a ~330Kb DLL built as an ATL COM wrapper over sqlite. And it is *fast* ..." SQLiteDB's object model is similar to ADO, featuring both a Connection and Recordset object. There are, however, differences between the libraries: - SQLiteDB does not include a Fields Collection; the main reason for this is simplicity and speed. - ADO is only a library to connect to other database engines, SQLiteDB is both the database engine and the library to connect to it. SQLite (mostly for C++ people) is here: http://www.sqlite.org /gustav From Mark.Mitsules at ngc.com Thu Nov 11 09:39:59 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 10:39:59 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark From DElam at jenkens.com Thu Nov 11 09:49:08 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 Nov 2004 09:49:08 -0600 Subject: [AccessD] Import from .prn File Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jimdettman at earthlink.net Thu Nov 11 10:08:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 11:08:10 -0500 Subject: [AccessD] Import from .prn File In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> Message-ID: Debbie, <> Not to be flippant, but don't. The contents of a .prn file are dependant on the printer driver used to create it. If you have no control over that, then the contents and encoding of that file could/will be different from one file to the next. If you do have control over the file creation, use the Generic Text Only driver to produce it. You should be able to use the Access Import Wizard at that point or use VB code to read it in line by line. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, November 11, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Import from .prn File I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Nov 11 10:09:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 02:09:58 +1000 Subject: [AccessD] Import from .prn File In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> Message-ID: <41941B76.29714.70C62D@lexacorp.com.pg> On 11 Nov 2004 at 9:49, Elam, Debbie wrote: > I am trying to import some data from a .prn file. When I open the file in > notepad it gives me gibberish, so I assume I will need to open it or convert > it with specific software. I found a trial version of ABC Amber CSV > converter. It claims to be able to convert a .prn to an Excel spreadsheet. > The trial version only imports 10 records, and they look just like the > gibberish in notepad, just put into columns. I am a little reluctant to > spring even for $14.95 given the trial performance, but I have not found > anything else to allow me to read this file properly. > > Does anyone have suggestions about how to import this file into Access? > If you have generated the .prn file by directing the output of a printer to file, you are probably putting out a graphic data dump not text so you will not be able to import it with ABC Amberm or amny other smilar tool Recreate the file. This time use the "Generic/Text only" printer driver instead of the one you are currently using. -- Stuart From jwcolby at colbyconsulting.com Thu Nov 11 10:11:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Nov 2004 11:11:07 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: <005901c4c809$11591c50$e8dafea9@ColbyM6805> Count(PK) as Cnt in the select clause Where PK is the primary key John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Thu Nov 11 10:25:00 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 Nov 2004 10:25:00 -0600 Subject: [AccessD] Import from .prn File Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C02485715@natexch.jenkens.com> Thanks, I will see if I can use a more generic printer driver to get the file. Debbie -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Import from .prn File Debbie, <> Not to be flippant, but don't. The contents of a .prn file are dependant on the printer driver used to create it. If you have no control over that, then the contents and encoding of that file could/will be different from one file to the next. If you do have control over the file creation, use the Generic Text Only driver to produce it. You should be able to use the Access Import Wizard at that point or use VB code to read it in line by line. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, November 11, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Import from .prn File I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jimdettman at earthlink.net Thu Nov 11 10:35:08 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 11:35:08 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Thu Nov 11 11:12:18 2004 From: James at fcidms.com (James Barash) Date: Thu, 11 Nov 2004 12:12:18 -0500 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <006f01c4c6a7$04ba1ac0$f8c581d5@pedro> Message-ID: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> All: I was visiting a client today who was having a problem with our system. None of the reports would print or preview. From the database window, I was unable to Preview or Design any of the existing reports and was unable to create a new report, either using the Design View or the Report Wizard. I created a blank database and also could not create any reports. Trying to open or design did not produce any error message, but did not open a report either. Using the Report Wizard, I got through all the prompts and after clicking the Finished button, I got the message "Unable to Create Report" I could create all the other types of objects: Tables, Queries, Forms, Macros and Modules. The system was working as of last week and he assured me there had been no changes to the computer since. Our system does work on other computer in the same office. The system is a single file running on the local drive. The user does have admin rights (create, read, write, update, delete) on the local drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I suggested that reloading Office would be the best thing to do but that has to be done through their IT department and could take a while. Has anyone seen this before and have a solution or any suggestions. Thanks, James Barash From liz at symphonyinfo.com Thu Nov 11 11:32:10 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Thu, 11 Nov 2004 11:32:10 -0600 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> Message-ID: Did your client's computer have a default printer assigned? If none is assigned, Access won't do anything with reports. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Barash Sent: Thursday, November 11, 2004 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unable to Open or Design Reports All: I was visiting a client today who was having a problem with our system. None of the reports would print or preview. From the database window, I was unable to Preview or Design any of the existing reports and was unable to create a new report, either using the Design View or the Report Wizard. I created a blank database and also could not create any reports. Trying to open or design did not produce any error message, but did not open a report either. Using the Report Wizard, I got through all the prompts and after clicking the Finished button, I got the message "Unable to Create Report" I could create all the other types of objects: Tables, Queries, Forms, Macros and Modules. The system was working as of last week and he assured me there had been no changes to the computer since. Our system does work on other computer in the same office. The system is a single file running on the local drive. The user does have admin rights (create, read, write, update, delete) on the local drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I suggested that reloading Office would be the best thing to do but that has to be done through their IT department and could take a while. Has anyone seen this before and have a solution or any suggestions. Thanks, James Barash -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Nov 11 11:34:59 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 18:34:59 +0100 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> References: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> Message-ID: <15734468543.20041111183459@cactus.dk> Hi James This sounds as if no default printer or no printer at all is installed. /gustav > I was visiting a client today who was having a problem with our system. None > of the reports would print or preview. From the database window, I was > unable to Preview or Design any of the existing reports and was unable to > create a new report, either using the Design View or the Report Wizard. I > created a blank database and also could not create any reports. Trying to > open or design did not produce any error message, but did not open a report > either. Using the Report Wizard, I got through all the prompts and after > clicking the Finished button, I got the message "Unable to Create Report" I > could create all the other types of objects: Tables, Queries, Forms, Macros > and Modules. The system was working as of last week and he assured me there > had been no changes to the computer since. Our system does work on other > computer in the same office. > The system is a single file running on the local drive. The user > does have admin rights (create, read, write, update, delete) on the local > drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I > suggested that reloading Office would be the best thing to do but that has > to be done through their IT department and could take a while. Has anyone > seen this before and have a solution or any suggestions. > Thanks, > James Barash From artful at rogers.com Thu Nov 11 11:38:57 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 11 Nov 2004 12:38:57 -0500 Subject: [AccessD] Access with a MySQL database In-Reply-To: References: Message-ID: <4193A3B1.1010302@rogers.com> Paul Rodgers wrote: >Hi Arthur > >I'd be very much obliged if you could let us/me know when your words on >MsSql are published on a website. > >Thanks very much for the info here which is most useful. > >Cheers > >paul > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: 28 October 2004 02:54 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access with a MySQL database > > >MartyConnelly wrote: > > > >>Something I came across from an ASP perspective >>http://www.aspfree.com/c/a/Microsoft-Access/An-Access-Front-End-to-MySQL/ >> >>Barbara Ryan wrote: >> >> >> >>>Does anyone have any experience using an Access application as a >>>front-end to a MySQL database back-end? My client is interested in >>>converting the Access back-end to either SQL Server or MySQL. They >>>currently do not own SQL Server but are using MySQL in their web >>>application. >>> >>>Any thoughts (advantages, limitations, etc.)? >>> >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >Hmph. I thought I answered this already, but it must have been a senior >moment. I have been there and done that extensively, for the book (that >was cancelled, and will soon re-emerge as a web site) my partner Peter >Brawley and I wrote about MySQL. >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > Thanks for asking. It shouldn't be a whole lot longer now; we're proofing it currently. (We = my long-time partner Peter Brawley and I.) I'm not sure how much of the "book" will be of interest to Access developers. One chatper in the ODBC section takes you step by step through porting Northwind to MySQL and then modifying the Access app to talk to the MySQL Northwind database. Actually there's not much to it, and I can thumbnail it here. There's really only one thing to worry about. Before converting, it's useful to add a timestamp column to each table -- just make it a DateTime column and default it to "=Now()". 1. Install MySQL and make sure it works. 2. Create a Northwind database in MySQL. 3. Install MyODBC. 4. Copy Northwind.MDB to NorthwindMySQL.MDB. Delete all the tables. 5. Create a DSN that uses MyODBC and points to the Northwind MySQL database. 6. Open the NorthwindMySQL.mdb and then the linked tables manager and point to the DSN. 7. Import all the tables. 8. You'll have problems with a few queries. I forget which ones offhand and don't have the chapter in front of me, but the chapter details which ones need changing and specifies the changes. Arthur From artful at rogers.com Thu Nov 11 11:44:55 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 11 Nov 2004 12:44:55 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: <4311196319.20041111120707@cactus.dk> References: <41929CF8.7070802@rogers.com> <4311196319.20041111120707@cactus.dk> Message-ID: <4193A517.1050002@rogers.com> Gustav Brock wrote: >Hi Mark and Arthur > >That may work but you'll be in trouble when trying to switch to design >view. > > > Design view is for wieners. In fact monitors are for wieners. Real programmers don't use compilers, they write compilers. Real programmers don't even need keyboards. They use voice-recognition software and emit ones and zeroes for a long time, and the results are vastly successful applications and games. From Mark.Mitsules at ngc.com Thu Nov 11 12:08:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 13:08:00 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 12:36:56 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 Nov 2004 13:36:56 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A279B@xlivmbx21.aig.com> 'fraid not. That will just give you "1" in every row (after you've turn the query into a Totals query, .Count(PK) as Cnt simply wont work at all in a standard select query). My question is why you want to do this in a query? If the end result it to be used in a report or a form then you don't need to modify the query, instead you modify the report or form to use the RunningSum property. It's all there in the on-line help. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Thursday, November 11, 2004 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Query - Add Recordcount Field > > Count(PK) as Cnt in the select clause > > Where PK is the primary key > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark > Sent: Thursday, November 11, 2004 10:40 AM > To: [AccessD] > Subject: [AccessD] Query - Add Recordcount Field > > > Group, > > Someone has this at the top of their head or near their > fingertips...hopefully. In a query, what is the syntax to add a running > recordcount column? Thanks. > > > Mark > -- > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 11 12:41:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Nov 2004 13:41:45 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: <005e01c4c81e$1c78a820$e8dafea9@ColbyM6805> You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 12:46:15 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 13:46:15 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Thu Nov 11 13:25:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 14:25:19 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Lambert, My current method does utilize the RunningSum property. This question loosely relates to a previous thread regarding table joins. I'm hoping to eventually run across the subject of subqueries in my archives which ties these two threads together. Mark -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Thursday, November 11, 2004 1:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field 'fraid not. That will just give you "1" in every row (after you've turn the query into a Totals query, .Count(PK) as Cnt simply wont work at all in a standard select query). My question is why you want to do this in a query? If the end result it to be used in a report or a form then you don't need to modify the query, instead you modify the report or form to use the RunningSum property. It's all there in the on-line help. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Thursday, November 11, 2004 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Query - Add Recordcount Field > > Count(PK) as Cnt in the select clause > > Where PK is the primary key > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark > Sent: Thursday, November 11, 2004 10:40 AM > To: [AccessD] > Subject: [AccessD] Query - Add Recordcount Field > > > Group, > > Someone has this at the top of their head or near their > fingertips...hopefully. In a query, what is the syntax to add a running > recordcount column? Thanks. > > > Mark > -- > 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 Thu Nov 11 13:26:54 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 14:26:54 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Jim, Would you be willing to look at the SQL off-list? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 1:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 14:01:28 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Nov 2004 12:01:28 -0800 Subject: [AccessD] Joining Two Tables In-Reply-To: <4193A517.1050002@rogers.com> Message-ID: Arthur: Do I catch a very subtle note of sarcasm or should I be seriously reconsidering my programming style? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, November 11, 2004 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Gustav Brock wrote: >Hi Mark and Arthur > >That may work but you'll be in trouble when trying to switch to design >view. > > > Design view is for wieners. In fact monitors are for wieners. Real programmers don't use compilers, they write compilers. Real programmers don't even need keyboards. They use voice-recognition software and emit ones and zeroes for a long time, and the results are vastly successful applications and games. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Thu Nov 11 14:05:04 2004 From: lists at theopg.com (MarkH) Date: Thu, 11 Nov 2004 20:05:04 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> Didn't read the whole thread so sorry if this has been done... You don?t need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From Mark.Mitsules at ngc.com Thu Nov 11 14:29:55 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 15:29:55 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Thu Nov 11 14:44:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 15:44:39 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Nov 11 15:30:25 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 16:30:25 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, Sure. But on would be fine too; it is on topic. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 2:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field Jim, Would you be willing to look at the SQL off-list? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 1:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 11 18:32:03 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 11:32:03 +1100 Subject: [AccessD] A2003: Filter Property Message-ID: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Hello all The help wasn't very helpful I want to apply a filter to a form using criteria from other controls like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = true It doesn't seem to work (IE It returns no results) But I have about 20 records where about 6 of those records have the same DateOfBilling date as I am typing into txtStartDate field So why don't I see those 6 returned from the 20?? Many thanks Darren From stuart at lexacorp.com.pg Thu Nov 11 18:48:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 10:48:13 +1000 Subject: [AccessD] A2003: Filter Property In-Reply-To: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Message-ID: <419494ED.24745.67A7C4@lexacorp.com.pg> On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like > Me.Filter = "DateOfBilling = " & Me.txtStartDate > Me.FilterOn = true > > > It doesn't seem to work (IE It returns no results) > But I have about 20 records where about 6 of those records > have the same DateOfBilling date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart From ssharkins at bellsouth.net Thu Nov 11 18:51:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 11 Nov 2004 19:51:26 -0500 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <20041112005125.GAXE2430.imf22aec.mail.bellsouth.net@SUSANONE> If the delimiters are the problem as Stuart suggests, you should be able to use the following: Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" I know that the Filter property can be a real pia, but I don't remember why off the top of my head. Don't forget to enable it -- something like Me.Filter.On = True ???? Really not sure about that last one -- but you need to make sure the form knows to actually use the filter. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 11, 2004 7:48 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 11 18:52:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 Nov 2004 16:52:58 -0800 Subject: [AccessD] A2003: Filter Property Message-ID: Darren, The Form's filter property is a string but if you're trying to apply the filter to a date field, make sure you include the hash marks around the date string so the datasource can compare it properly. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 11, 2004 4:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Filter Property Hello all The help wasn't very helpful I want to apply a filter to a form using criteria from other controls like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = true It doesn't seem to work (IE It returns no results) But I have about 20 records where about 6 of those records have the same DateOfBilling date as I am typing into txtStartDate field So why don't I see those 6 returned from the 20?? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Nov 11 19:03:25 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 11:03:25 +1000 Subject: [AccessD] A2003: Filter Property In-Reply-To: <20041112005125.GAXE2430.imf22aec.mail.bellsouth.net@SUSANONE> References: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <4194987D.4043.759244@lexacorp.com.pg> On 11 Nov 2004 at 19:51, Susan Harkins wrote: > If the delimiters are the problem as Stuart suggests, you should be able to > use the following: > > Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" > Nope, Darren's an Aussie. Doing it that way gets the month and day reversed if he is using the default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work at all if he using something like "12 Nov 04" :-( -- Stuart From d.dick at uws.edu.au Thu Nov 11 19:41:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 12:41:18 +1100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <200411120141.iAC1fXdQ003082@cooper.uws.edu.au> Hi Stuart et al Excellent - DateValue('" & Me.txtStartDate & "')" works like a charm Next q :-)) What would the syntax be or a date range Eg in SQL you'd write something like... >= Me.txtStartDate and <= Me.txEndDate How does this apply to a filter or does it not apply?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ 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 Nov 11 19:45:14 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 12:45:14 +1100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <200411120145.iAC1jUdQ007739@cooper.uws.edu.au> Oops worked it out It's Me.Filter = "DateOfBilling >= DateValue('" & Me.txtStartDate & "')" _ & "and DateOfBilling <= DateValue('" & Me.txtEndDate & "')" Many thanks y'all See ya Darren Stuart --- you da man !!!!!!!!!!!!1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Nov 11 23:34:59 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 12 Nov 2004 11:04:59 +0530 Subject: [AccessD] A2003: Filter Property References: <200411120145.iAC1jUdQ007739@cooper.uws.edu.au> Message-ID: <019201c4c879$8a5ff900$e81865cb@winxp> Using Date Variables In A Criteria String =========================== Certain aspects required to be kept in view ---------------------------------------------------- Similar topic came up in one of the other discussion groups, where it was pointed out by John Viescas, that when a date variable (in its raw state) is concatenated within a string, it will get embedded in a format governed by existing regional settings (for short date) on the particular computer. This can lead to unexpected results where the computer's system settings are not conforming to U.S. convention (mm-dd-yyyy). It was therefore concluded that as a foolproof measure for consistent results, the date variable should first be converted into a non-ambiguous string format (or into U.S style format), before being concatenated with the main statement. An example is given below (TDate is a date type field in table T_Test, while StartDate & FinDate are variables holding date values)- StrSQL = "DELETE * FROM T_Test" StrSQL = StrSQL & " WHERE TDate Between #" & _ Format(StartDate, "dd-mmm-yyyy") & "#" StrSQL = StrSQL & " AND #" & _ Format(FinDate, "dd-mmm-yyyy") & "#;" A.D.Tejpal -------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 07:15 Subject: RE: [AccessD] A2003: Filter Property Oops worked it out It's Me.Filter = "DateOfBilling >= DateValue('" & Me.txtStartDate & "')" _ & "and DateOfBilling <= DateValue('" & Me.txtEndDate & "')" Many thanks y'all See ya Darren Stuart --- you da man !!!!!!!!!!!!1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" Stuart From Paul.Rogers at SummitMedia.co.uk Fri Nov 12 02:45:01 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 12 Nov 2004 08:45:01 -0000 Subject: [AccessD] Access with a MySQL database Message-ID: All noted, Arthur, thanks very much. Will try from these notes - and looking forward to your posting on the net. Hope things are ok with you. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 11 November 2004 17:39 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access with a MySQL database From gustav at cactus.dk Fri Nov 12 04:54:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 11:54:14 +0100 Subject: [AccessD] Joining Two Tables In-Reply-To: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> References: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> Message-ID: <872658342.20041112115414@cactus.dk> Hi Mark That's right, though I only do that when absolutely needed. Look up in the archive for July 2002: SQL in-line subquery (solved) for the []. AS TableX syntax. /gustav > That is exactly what I ended up doing. But since I lack the SQL "guru" > certification ;) I thought I'd put the question out there. I was > thinking back to a thread a long while back regarding a method that > creates a sort of temporary table within one query...or something along > those lines. I didn't know if/how that method might apply to my > situation. > Mark > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, November 11, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Joining Two Tables > Hi Mark and Arthur > That may work but you'll be in trouble when trying to switch to design > view. I would create a query for Tbl2 with a field with the expression > needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you > need to join Tbl1 and Tbl2. > /gustav >>>I have two tables I would like to join. Tbl1.Fld1 contains a >>>variable-length string, Tbl2.Fld2 contains the same variable-length >>>string concatenated with a variable-length suffix. >>> >>>Any suggestions on how to proceed? Is there an elegant solution? >>> >>>Mark >> At first blush I would try this: >> >> SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, >> LEN(T1.Field1)) >> Arthur From gustav at cactus.dk Fri Nov 12 05:17:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 12:17:00 +0100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> References: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Message-ID: <1844024677.20041112121700@cactus.dk> Hi Darren The only foolproof way is to force US formatting of date strings: Me.Filter = "DateOfBilling = " & _ Format(Me.txtStartDate, "\# mm\/dd\/yyyy \#") /gustav > I want to apply a filter to a form using criteria from other controls > like > Me.Filter = "DateOfBilling = " & Me.txtStartDate > Me.FilterOn = true > It doesn't seem to work (IE It returns no results) > But I have about 20 records where about 6 of those records > have the same DateOfBilling date as I am typing into txtStartDate field > So why don't I see those 6 returned from the 20?? From Paul.Rogers at SummitMedia.co.uk Fri Nov 12 05:35:51 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 12 Nov 2004 11:35:51 -0000 Subject: [AccessD] Function No Go Message-ID: Many thanks, Joe Hecht and Jim Dettman. Exactly the problem - and it was DAO. Having that hint of DAO cut the corners and made it a very quick correction. (I had feared it might take an hour or more). Most grateful. Cheers paul -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: 11 November 2004 13:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function No Go As Joe said, it's references. Open a module in design view, click tools/references. Look for any listed as MISSING or BROKEN. If they are, you'll need to figure out why. If none are, check any unchecked reference, close the MDB and Access, re-open and uncheck the reference just checked. Then try a compile. If still no go then a lib needs to be re-registered with regsvr32 (usually it's DAO). Jim Dettman From accessd667 at yahoo.com Fri Nov 12 07:07:01 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 12 Nov 2004 05:07:01 -0800 (PST) Subject: [AccessD] OT: Outlook programming sites/info Message-ID: <20041112130702.53053.qmail@web61103.mail.yahoo.com> Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From andy at minstersystems.co.uk Fri Nov 12 06:37:57 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Nov 2004 13:37:57 +0100 Subject: [AccessD] OT: Outlook programming sites/info Message-ID: <20041112133754.5D056250798@smtp.nildram.co.uk> Try http://www.slipstick.com/ http://www.outlookcode.com http://www.outlook-tips.net/index.html -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Date: 12/11/04 13:10 > > Hi group, > > I need to do some outlook programming (couple of forms etc.) > does anybody know some good oulook programming websites? > > TIA > > Sander > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.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 Mark.Mitsules at ngc.com Fri Nov 12 07:38:29 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 08:38:29 -0500 Subject: [AccessD] OT: Outlook programming sites/info Message-ID: Sander, One of the most quoted sites I've seen on this list is probably www.slipstick.com. Mark -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Friday, November 12, 2004 8:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Nov 12 07:39:20 2004 From: James at fcidms.com (James Barash) Date: Fri, 12 Nov 2004 08:39:20 -0500 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <15734468543.20041111183459@cactus.dk> Message-ID: <0I7200LLQJ9K5M@mta5.srv.hcvlny.cv.net> Gustav and Liz: Thanks for the suggestions. I hadn't thought of that since everything worked correctly as of last week. I'll pass it on to my client and hope that does it. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 11, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unable to Open or Design Reports Hi James This sounds as if no default printer or no printer at all is installed. /gustav > I was visiting a client today who was having a problem with our system. None > of the reports would print or preview. From the database window, I was > unable to Preview or Design any of the existing reports and was unable to > create a new report, either using the Design View or the Report Wizard. I > created a blank database and also could not create any reports. Trying to > open or design did not produce any error message, but did not open a report > either. Using the Report Wizard, I got through all the prompts and after > clicking the Finished button, I got the message "Unable to Create Report" I > could create all the other types of objects: Tables, Queries, Forms, Macros > and Modules. The system was working as of last week and he assured me there > had been no changes to the computer since. Our system does work on other > computer in the same office. > The system is a single file running on the local drive. The user > does have admin rights (create, read, write, update, delete) on the local > drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I > suggested that reloading Office would be the best thing to do but that has > to be done through their IT department and could take a while. Has anyone > seen this before and have a solution or any suggestions. > Thanks, > James Barash -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Nov 12 08:04:20 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 12 Nov 2004 09:04:20 -0500 Subject: [AccessD] OT: Outlook programming sites/info In-Reply-To: <20041112130702.53053.qmail@web61103.mail.yahoo.com> Message-ID: Helen's been at that stuff for a while: http://www.helenfeddema.com/ Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, November 12, 2004 8:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Nov 12 08:43:31 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 12 Nov 2004 09:43:31 -0500 Subject: [AccessD] A2003: Filter Property In-Reply-To: <4194987D.4043.759244@lexacorp.com.pg> Message-ID: <20041112144330.KSEL2451.imf21aec.mail.bellsouth.net@SUSANONE> Well, who knew??????? ;) Is this the spot for Gustav's little international date breaker????? :) Susan H. Nope, Darren's an Aussie. Doing it that way gets the month and day reversed if he is using the default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work at all if he using something like "12 Nov 04" :-( From reuben at gfconsultants.com Fri Nov 12 10:04:48 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 11:04:48 -0500 Subject: [AccessD] OT - Force apps to open in same place Message-ID: I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From BBarabash at TappeConstruction.com Fri Nov 12 10:17:07 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Nov 2004 10:17:07 -0600 Subject: [AccessD] OT - Force apps to open in same place Message-ID: <100F91B31300334B89EC531C9DCB08653F5F1D@tccexch01.tappeconstruction.net> What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From adtp at touchtelindia.net Fri Nov 12 10:22:43 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 12 Nov 2004 21:52:43 +0530 Subject: [AccessD] Query - Add Recordcount Field References: Message-ID: <005201c4c8d3$ed2c3ad0$791865cb@winxp> Mark, Following alternatives could be considered, for getting running count in a query field - (a) Sub-query. (b) Domain function i.e. DCount(). (c) User defined function based upon recordset. (d) User defined function based upon sequentially incrementing global variable. Use of sub-query for running count renders the output non-updateable. If this is considered a constraint, options (b) or (c) could be tried. In all cases, it is necessary that the fields upon which running count is based, are sorted in proper sequence. The last field amongst the group of sorted fields should be the one holding unique values (so as to prevent duplicate values in running count). Option (d) needs special care in view of volatile nature of output. In a select query, it results in inconsistent display, as the calculated result keeps on changing if the user navigates over it repeatedly from. As such, its use is preferably restricted only to single pass action queries (e.g. Append or update). Two sample SQL's using sub-query approach are given at (A) and (B) below. (A) represents the simplest case where the running count is based upon only one field (named ID) having unique values, while (B) demonstrates a combination of date field (TDate) and the unique value field (ID). The samples are based upon table T_Data as the source. When running count is needed on relatively complex query (specially if it is aggregate type involving group by clause), the final query should be used as source (in place of T_Data). Regards, A.D.Tejpal -------------- (A) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.ID <= T_Data.ID) AS RunningCount FROM T_Data ORDER BY T_Data.ID; ================================= (B) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.TDate < T_Data.TDate Or (T1.TDate = T_Data.TDate And T1.ID <= T_Data.ID)) AS RunningCount FROM T_Data ORDER BY T_Data.TDate, T_Data.ID; ================================= ----- Original Message ----- From: Mitsules, Mark To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 01:59 Subject: RE: [AccessD] Query - Add Recordcount Field Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark From Mark.Mitsules at ngc.com Fri Nov 12 10:42:35 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 11:42:35 -0500 Subject: [AccessD] OT - Force apps to open in same place Message-ID: Reuben, I understand your concern, however, I will go out on a limb as a "user" and say that I frown on applications that overtly force or override "my" current settings...especially if they do not return them to their original state. Mark -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, November 12, 2004 11:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. 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 gustav at cactus.dk Fri Nov 12 10:59:49 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 17:59:49 +0100 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> References: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> Message-ID: <3524593082.20041112175949@cactus.dk> Hi John Not a direct answer, I know, but these are the recommended programming roads by MS itself (one line): http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/dno2k3ta/html/Office2003OverviewDeveloperTechnologies.asp Part two is not published yet it seems ... /gustav > Date: 2004-11-07 05:08 > In Access we use MDA/Es to store libraries of reusable code. Is there an > equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these > other platforms have references like we do in Access? If so, can you > reference an MDA/E to use code in it? From reuben at gfconsultants.com Fri Nov 12 11:46:17 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 12:46:17 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: Message-ID: This is strictly for my own personal use during development. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Friday, November 12, 2004 11:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Force apps to open in same place Reuben, I understand your concern, however, I will go out on a limb as a "user" and say that I frown on applications that overtly force or override "my" current settings...especially if they do not return them to their original state. Mark -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, November 12, 2004 11:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Nov 12 11:46:17 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 12:46:17 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: <100F91B31300334B89EC531C9DCB08653F5F1D@tccexch01.tappeconstruction.net> Message-ID: It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Mark.Mitsules at ngc.com Fri Nov 12 11:54:16 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 12:54:16 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Excellent overview A.D.Tejpal! Many thanks. Mark -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Friday, November 12, 2004 11:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query - Add Recordcount Field Mark, Following alternatives could be considered, for getting running count in a query field - (a) Sub-query. (b) Domain function i.e. DCount(). (c) User defined function based upon recordset. (d) User defined function based upon sequentially incrementing global variable. Use of sub-query for running count renders the output non-updateable. If this is considered a constraint, options (b) or (c) could be tried. In all cases, it is necessary that the fields upon which running count is based, are sorted in proper sequence. The last field amongst the group of sorted fields should be the one holding unique values (so as to prevent duplicate values in running count). Option (d) needs special care in view of volatile nature of output. In a select query, it results in inconsistent display, as the calculated result keeps on changing if the user navigates over it repeatedly from. As such, its use is preferably restricted only to single pass action queries (e.g. Append or update). Two sample SQL's using sub-query approach are given at (A) and (B) below. (A) represents the simplest case where the running count is based upon only one field (named ID) having unique values, while (B) demonstrates a combination of date field (TDate) and the unique value field (ID). The samples are based upon table T_Data as the source. When running count is needed on relatively complex query (specially if it is aggregate type involving group by clause), the final query should be used as source (in place of T_Data). Regards, A.D.Tejpal -------------- (A) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.ID <= T_Data.ID) AS RunningCount FROM T_Data ORDER BY T_Data.ID; ================================= (B) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.TDate < T_Data.TDate Or (T1.TDate = T_Data.TDate And T1.ID <= T_Data.ID)) AS RunningCount FROM T_Data ORDER BY T_Data.TDate, T_Data.ID; ================================= ----- Original Message ----- From: Mitsules, Mark To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 01:59 Subject: RE: [AccessD] Query - Add Recordcount Field Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Nov 12 14:37:59 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 12 Nov 2004 21:37:59 +0100 Subject: [AccessD] precursor zero Message-ID: <003001c4c8f7$804af590$f2c581d5@pedro> Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen From CMackin at quiznos.com Fri Nov 12 14:48:37 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 12 Nov 2004 13:48:37 -0700 Subject: [AccessD] precursor zero Message-ID: String & Right("0000" & CStr(ID), 4) Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Friday, November 12, 2004 1:38 PM To: AccessD at databaseadvisors.com Subject: [AccessD] precursor zero Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Nov 12 14:55:53 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Nov 2004 14:55:53 -0600 Subject: [AccessD] precursor zero Message-ID: <100F91B31300334B89EC531C9DCB08653F5F26@tccexch01.tappeconstruction.net> "string" & Format([ID Field Name],"0000") -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, November 12, 2004 2:38 PM To: AccessD at databaseadvisors.com Subject: [AccessD] precursor zero Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen -- -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From ssharkins at bellsouth.net Sat Nov 13 08:58:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Nov 2004 09:58:37 -0500 Subject: [AccessD] OT: Probably Message-ID: <20041113145836.FAVX2451.imf21aec.mail.bellsouth.net@SUSANONE> Office XP Alternative User Input Update: KB832668 The Office XP Alternative User Input Update: KB832668 updates the framework which is used to support advanced text services in Microsoft Office XP. Update for Office 2003: Alternative User Input (KB870774) The Update for Office 2003: Alternative User Input (KB870774) updates the framework which is used to support advanced text services in Microsoft Office 2003. Can someone tell me what the Alternative User Input is? Susan H. From DaveSharpe2 at cox.net Sat Nov 13 15:09:00 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Sat, 13 Nov 2004 16:09:00 -0500 Subject: [AccessD] OT: Probably References: <20041113145836.FAVX2451.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <002c01c4c9c4$ff6ec900$6ea9fe18@bcsrkeext6137> Susan http://support.microsoft.com/kb/316127 Contains the following "The Office XP Alternative User Input Update: January 24, 2002 updates the framework that is used to support advanced text services in Office XP. Examples of advanced text services include speech recognition, handwriting recognition, and East Asian keyboard input services." I hope that this helps. Dave ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Saturday, November 13, 2004 9:58 AM Subject: [AccessD] OT: Probably Office XP Alternative User Input Update: KB832668 The Office XP Alternative User Input Update: KB832668 updates the framework which is used to support advanced text services in Microsoft Office XP. Update for Office 2003: Alternative User Input (KB870774) The Update for Office 2003: Alternative User Input (KB870774) updates the framework which is used to support advanced text services in Microsoft Office 2003. Can someone tell me what the Alternative User Input is? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Nov 13 17:20:16 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 14 Nov 2004 09:20:16 +1000 Subject: [AccessD] OT: Probably In-Reply-To: <002c01c4c9c4$ff6ec900$6ea9fe18@bcsrkeext6137> Message-ID: <41972350.30452.A63CB78@lexacorp.com.pg> On 13 Nov 2004 at 16:09, Dave Sharpe wrote: > > Contains the following "The Office XP Alternative User Input Update: > January 24, 2002 updates the framework that is used to support advanced > text services in Office XP. Examples of advanced text services include > speech recognition, handwriting recognition, and East Asian keyboard > input services." > Even further OT: Another interesting "Alternative User Input" to play with is also not limited to Office XP. Check out Dasher at http://www.inference.phy.cam.ac.uk/dasher -- Stuart From ssharkins at bellsouth.net Sat Nov 13 18:04:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Nov 2004 19:04:45 -0500 Subject: [AccessD] OT: Probably In-Reply-To: <41972350.30452.A63CB78@lexacorp.com.pg> Message-ID: <20041114000445.XYQW8988.imf16aec.mail.bellsouth.net@SUSANONE> Had no idea... ;) Thanks! Susan H. Another interesting "Alternative User Input" to play with is also not limited to Office XP. Check out Dasher at http://www.inference.phy.cam.ac.uk/dasher From lists at theopg.com Thu Nov 11 14:51:22 2004 From: lists at theopg.com (MarkH) Date: Thu, 11 Nov 2004 20:51:22 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <000a01c4c830$3528aca0$d30d6bd5@netboxxp> I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From jwcolby at colbyconsulting.com Sun Nov 14 07:04:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 14 Nov 2004 08:04:50 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: <000a01c4c830$3528aca0$d30d6bd5@netboxxp> Message-ID: <000801c4ca4a$86aecd90$e8dafea9@ColbyM6805> It is my understanding that a join breaks down to (is interpreted as) exactly that code anyway. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Thursday, November 11, 2004 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ 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 Nov 14 19:35:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 12:35:56 +1100 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: Message-ID: <200411150136.iAF1a1dQ025733@cooper.uws.edu.au> Hi Reuben I use an NVIDIA card also What you are requesting is Driver dependant - though the NVIDIA Driver manager does Allow you to select what screen you want an app to open on. Be wary though.... I had it happen once that I did some development work on a 'not centred' form Whilst I was in an NVIDIA 'wide screen' kinda setup. When the form was opened at the customers place the form open up 'off the screen'. And of course it was set to modal so I had to CTRL ALT DEL Did some very quick editing (Using the scroll bars to go 'off screen') drag the form back, edit something (I moved a label) and save the changes in the middle of the customers only screen So...bear this in mind when opening, designing and moving 'not centred' popup type forms between screens. What I do now is....all my form design work on the left screen (I have that screen as monitor 1) and all my code work (monitor 2) on the right. So it shouldn't matter when I am at my customers with 1 screen See ya - hope this helps DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Saturday, 13 November 2004 4:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 d.dick at uws.edu.au Sun Nov 14 23:24:13 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 16:24:13 +1100 Subject: [AccessD] A2003:Adding All to a List Message-ID: <200411150524.iAF5OJdQ018582@cooper.uws.edu.au> I know this has been done to death I have done it many time using my code library I have lost my libraries when my hard drive was hosed and Drew's search on the archives timed me out So... If I want the text to appear at the top of a legitimate list but it it not part of the recordset, how do I do it? EG from a combo.... Michael Stephen Peter Susan Zafir etc Many thanks Darren From stuart at lexacorp.com.pg Sun Nov 14 23:36:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 15 Nov 2004 15:36:19 +1000 Subject: [AccessD] A2003:Adding All to a List In-Reply-To: <200411150524.iAF5OJdQ018582@cooper.uws.edu.au> Message-ID: <4198CCF3.23099.10E26E7B@lexacorp.com.pg> On 15 Nov 2004 at 16:24, Darren DICK wrote: > So... > If I want the text to appear at the top of a legitimate list but it it > not > part of the recordset, how do I do it? > Use a Union query: Select "" as FirstName from tblNames UNION Select FirstName from tblNames -- Stuart From bchacc at san.rr.com Sun Nov 14 23:55:23 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 14 Nov 2004 21:55:23 -0800 Subject: [AccessD] Windows Digital Right Management Software Message-ID: <01e701c4cad7$b31a4840$6501a8c0@HAL9002> Does anybody know anything about Microsoft "Digital Right Management Software" (DRM). The Chinese distributor is suggesting it for copy protection in China. Is it good? Effective? What's the downside? Is it hard to use and manage? What problems does it create for the user? Any info will be appreciated. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com From d.dick at uws.edu.au Mon Nov 15 00:31:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 17:31:31 +1100 Subject: [AccessD] A2003:Adding All to a List In-Reply-To: <4198CCF3.23099.10E26E7B@lexacorp.com.pg> Message-ID: <200411150631.iAF6VbdR008361@cooper.uws.edu.au> Hi Stuart As usual - You Da Man!!!!!!!!! Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, 15 November 2004 4:36 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Adding All to a List On 15 Nov 2004 at 16:24, Darren DICK wrote: > So... > If I want the text to appear at the top of a legitimate list but > it it not part of the recordset, how do I do it? > Use a Union query: Select "" as FirstName from tblNames UNION Select FirstName from tblNames -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Nov 15 03:37:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 15 Nov 2004 09:37:54 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: <000801c4ca4a$86aecd90$e8dafea9@ColbyM6805> Message-ID: <000001c4caf6$c9626190$0e0b6bd5@netboxxp> Thanks John Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 14 November 2004 13:05 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables It is my understanding that a join breaks down to (is interpreted as) exactly that code anyway. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Thursday, November 11, 2004 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From reuben at gfconsultants.com Mon Nov 15 08:06:52 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Mon, 15 Nov 2004 09:06:52 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: <200411150136.iAF1a1dQ025733@cooper.uws.edu.au> Message-ID: Thanks, Darren. That does help. I think I'll just deal with moving forms over when needed. That two seconds won't hurt me much. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, November 14, 2004 8:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Force apps to open in same place Hi Reuben I use an NVIDIA card also What you are requesting is Driver dependant - though the NVIDIA Driver manager does Allow you to select what screen you want an app to open on. Be wary though.... I had it happen once that I did some development work on a 'not centred' form Whilst I was in an NVIDIA 'wide screen' kinda setup. When the form was opened at the customers place the form open up 'off the screen'. And of course it was set to modal so I had to CTRL ALT DEL Did some very quick editing (Using the scroll bars to go 'off screen') drag the form back, edit something (I moved a label) and save the changes in the middle of the customers only screen So...bear this in mind when opening, designing and moving 'not centred' popup type forms between screens. What I do now is....all my form design work on the left screen (I have that screen as monitor 1) and all my code work (monitor 2) on the right. So it shouldn't matter when I am at my customers with 1 screen See ya - hope this helps DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Saturday, 13 November 2004 4:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 rl_stewart at highstream.net Mon Nov 15 10:13:37 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 15 Nov 2004 10:13:37 -0600 Subject: [AccessD] Re: A2003: Filter Property In-Reply-To: <200411121341.iACDfCL18404@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041115101159.01423e30@pop3.highstream.net> But, Me.Filter = "DateOfBilling = CDate(" & Me.txtStartDate & ")" would, make that should, work with any of them. You might also want to add me.refresh on the end of the sub. Robert At 07:41 AM 11/12/2004 -0600, you wrote: >Date: Fri, 12 Nov 2004 11:03:25 +1000 >From: "Stuart McLachlan" >Subject: RE: [AccessD] A2003: Filter Property >To: Access Developers discussion and problem solving > >Message-ID: <4194987D.4043.759244 at lexacorp.com.pg> >Content-Type: text/plain; charset=US-ASCII > >On 11 Nov 2004 at 19:51, Susan Harkins wrote: > > > If the delimiters are the problem as Stuart suggests, you should be able to > > use the following: > > > > Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" > > > >Nope, Darren's an Aussie. > >Doing it that way gets the month and day reversed if he is using the >default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work >at all if he using something like "12 Nov 04" :-( > >-- >Stuart From rfv at entelix.com Mon Nov 15 14:19:14 2004 From: rfv at entelix.com (rfv at entelix.com) Date: Mon, 15 Nov 2004 14:19:14 -0600 Subject: [AccessD] How many Access installed worldwide? Message-ID: <200411152022.iAFKMKL14695@databaseadvisors.com> Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek From Erwin.Craps at ithelps.be Mon Nov 15 14:44:05 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 15 Nov 2004 21:44:05 +0100 Subject: [AccessD] How many Access installed worldwide? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B551B@stekelbes.ithelps.local> I got a couple ones over here :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rfv at entelix.com Sent: Monday, November 15, 2004 9:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] How many Access installed worldwide? Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek -- _______________________________________________ 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 Nov 15 15:01:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 15 Nov 2004 21:01:44 -0000 Subject: [AccessD] How many Access installed worldwide? In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B551B@stekelbes.ithelps.local> Message-ID: <002201c4cb56$50741f70$b274d0d5@minster33c3r25> And I've 3 (boy this could take a while). Sorry Rudolf, we're being facetious. But the question's a bit like how many drops of water in the Pacific. Maybe MS know how many copies they have registered but that's surely the tip of the iceberg. -- 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: 15 November 2004 20:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] How many Access installed worldwide? > > > I got a couple ones over here :-) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > rfv at entelix.com > Sent: Monday, November 15, 2004 9:19 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] How many Access installed worldwide? > > Hi, > Can anyobody tell me how many MS Access packages are > installed worldwide? > > Thnaks > > > Rudolf F. Vanek > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 mnptl at sonmedia.com Mon Nov 15 18:43:47 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Mon, 15 Nov 2004 19:43:47 -0500 (EST) Subject: [AccessD] Disabling the scrolling mouse in Access 97 Message-ID: <58067.10.235.219.133.1100565827.webmail@10.235.219.133> My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark From d.dick at uws.edu.au Mon Nov 15 19:03:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 12:03:48 +1100 Subject: [AccessD] A2003: Design Question Message-ID: <200411160103.iAG13udQ009199@cooper.uws.edu.au> Hi Team I Have a dB that holds data for both Clients (tblClients) and Franchises (tblFranchises) The tblClients holds all the usual client detail stuff - ClientID is the PK (Autonumber) tblFranchises holds various bits of information about any particular franchise - FranchiseID is the PK (Autonumber) So essentially 2 entity groups within the dB. BUT my client does work for both the Franchises and individual Customers. In order to present both of them in a TimeBilling Screen I use a union query to 'merge' both groups into a single combo The problem is storing the PK correctly. eg say I select the 4th Franchise in the list - it has a PK of 4 Well an entry on the client side will also have a PK of 4. I am tossing up with various ways to deal with this including merging both tables into one table and just setting a flag to differentiate Clients from Franchises. Of course I can have separate fields in the tblTimeBilling for FranchiseID and for ClientID. Just not sure what would be a sleek solution :-)) I am sure this is a common type of thing - I just wanted to know some methods on how you guys deal with this sort of design question. Many thanks Darren From Mark.Porter at acsalaska.com Mon Nov 15 19:18:03 2004 From: Mark.Porter at acsalaska.com (Porter, Mark) Date: Mon, 15 Nov 2004 16:18:03 -0900 Subject: [AccessD] How many Access installed worldwide? Message-ID: <635B80FE6C7D5A409586A6A110D97D17217E62@ACSANCHOR.corp.acsalaska.com> What version? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rfv at entelix.com Sent: Monday, November 15, 2004 11:19 AM To: AccessD at databaseadvisors.com Subject: [AccessD] How many Access installed worldwide? Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** 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 cfoust at infostatsystems.com Mon Nov 15 19:23:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Nov 2004 17:23:59 -0800 Subject: [AccessD] Disabling the scrolling mouse in Access 97 Message-ID: Check Lebans' site http://www.lebans.com/ Charlotte Foust -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Monday, November 15, 2004 4:44 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Disabling the scrolling mouse in Access 97 My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark -- _______________________________________________ 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 Nov 15 19:24:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 12:24:45 +1100 Subject: [AccessD] Disabling the scrolling mouse in Access 97 In-Reply-To: <58067.10.235.219.133.1100565827.webmail@10.235.219.133> Message-ID: <200411160124.iAG1OrdQ005494@cooper.uws.edu.au> Hi Mark Have a look at Stephen Lebans web site http://www.lebans.com/mousewheelonoff.htm Hope this helps See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of mnptl at sonmedia.com Sent: Tuesday, 16 November 2004 11:44 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Disabling the scrolling mouse in Access 97 My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Nov 15 19:24:47 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Nov 2004 11:24:47 +1000 Subject: [AccessD] A2003: Design Question In-Reply-To: <200411160103.iAG13udQ009199@cooper.uws.edu.au> Message-ID: <4199E37E.31769.1522713E@lexacorp.com.pg> On 16 Nov 2004 at 12:03, Darren DICK wrote: > > BUT my client does work for both the Franchises and individual Customers. > In order to present both of them in a TimeBilling Screen I use a union query > to 'merge' both > groups into a single combo > > The problem is storing the PK correctly. eg say I select the 4th Franchise > in the list - it has a PK of 4 > Well an entry on the client side will also have a PK of 4. > > I am tossing up with various ways to deal with this including merging both > tables into one > table and just setting a flag to differentiate Clients from Franchises. > Of course I can have separate fields in the tblTimeBilling for FranchiseID > and for ClientID. > I'd probably go for a tblEntity with 3 fields: ID EntityType (Franchise or Client) EntityID You can then base your ComboBox on a query something like: Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >From tblEntities Left Join tblFranchises ....... Left Join TblClients ...... -- Stuart From d.dick at uws.edu.au Mon Nov 15 20:24:55 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 13:24:55 +1100 Subject: [AccessD] A2003: Design Question In-Reply-To: <4199E37E.31769.1522713E@lexacorp.com.pg> Message-ID: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> Hi Stuart Thanks for the reply In your suggestion I would create a 3rd table called tblEntity - yes? How does it get populated? How would I store entries to the tblTimeBilling table. IE in the union combo how would I store that PK 4 in this case is a franchise Not a client? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, 16 November 2004 12:25 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Design Question On 16 Nov 2004 at 12:03, Darren DICK wrote: > > BUT my client does work for both the Franchises and individual Customers. > In order to present both of them in a TimeBilling Screen I use a union > query to 'merge' both groups into a single combo > > The problem is storing the PK correctly. eg say I select the 4th > Franchise in the list - it has a PK of 4 Well an entry on the client > side will also have a PK of 4. > > I am tossing up with various ways to deal with this including merging > both tables into one table and just setting a flag to differentiate > Clients from Franchises. > Of course I can have separate fields in the tblTimeBilling for > FranchiseID and for ClientID. > I'd probably go for a tblEntity with 3 fields: ID EntityType (Franchise or Client) EntityID You can then base your ComboBox on a query something like: Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >From tblEntities Left Join tblFranchises ....... Left Join TblClients ...... -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Nov 15 23:49:34 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 16 Nov 2004 00:49:34 -0500 Subject: [AccessD] A2003: Design Question In-Reply-To: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> References: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> Message-ID: <419994EE.4020904@rogers.com> Darren DICK wrote: >Hi Stuart >Thanks for the reply >In your suggestion I would create a 3rd table called tblEntity - yes? >How does it get populated? > >How would I store entries to the tblTimeBilling table. >IE in the union combo how would I store that PK 4 in this case is a >franchise >Not a client? > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Tuesday, 16 November 2004 12:25 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003: Design Question > >On 16 Nov 2004 at 12:03, Darren DICK wrote: > > > >> >>BUT my client does work for both the Franchises and individual Customers. >>In order to present both of them in a TimeBilling Screen I use a union >>query to 'merge' both groups into a single combo >> >>The problem is storing the PK correctly. eg say I select the 4th >>Franchise in the list - it has a PK of 4 Well an entry on the client >>side will also have a PK of 4. >> >>I am tossing up with various ways to deal with this including merging >>both tables into one table and just setting a flag to differentiate >>Clients from Franchises. >>Of course I can have separate fields in the tblTimeBilling for >>FranchiseID and for ClientID. >> >> >> > >I'd probably go for a tblEntity with 3 fields: > >ID >EntityType (Franchise or Client) >EntityID > >You can then base your ComboBox on a query something like: > >Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >>From tblEntities Left Join tblFranchises ....... Left Join TblClients > ...... > > > > >-- >Stuart > > > > Is there a profitable reason to store these entities in different tables? There may well be, but in your problem description it is not apparent. If my hunch is correct, then you can put both Franchises and Customers in the same table, adding a flag to indicate which. There is the possibility however that an entity is both a Customer and a Franchise, in which case a boolean won't do, so replace it with a numeric. Up side: much simpler combo selectors. Down side: selecting only one or the other type demands hitting the whole table (unless the BE is SQL). HTH, Arthur From roz.clarke at donnslaw.co.uk Tue Nov 16 05:25:14 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 16 Nov 2004 11:25:14 -0000 Subject: [AccessD] cross-posted - sql dba services Message-ID: <61F915314798D311A2F800A0C9C8318805CED7A8@dibble.observatory.donnslaw.co.uk> Hi all A couple of years ago I was recruiting for someone with SQL Server DBA skills, and someone from accessd put his company forward to provide those skills on a consultancy basis if I had trouble recruiting. At that time I found someone who was very good, but as good people do, he has now moved onwards & upwards to greater things. We are struggling to replace him; is anyone on the list currently providing SQL DBA consultancy in the North West of England? We have some potential projects coming up which are beyond our in-house skill set, and it would be nice to know if there is an alternative to hiring someone permanent. Many thanks Roz -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From joeget at vgernet.net Tue Nov 16 05:47:18 2004 From: joeget at vgernet.net (John Eget) Date: Tue, 16 Nov 2004 06:47:18 -0500 Subject: [AccessD] developer CD's for 2003 Message-ID: <000f01c4cbd2$0a192fd0$8ec2f63f@Desktop> I want to deploy an access 2003 database and the customer is willing to purchase the development software. I have the Office Development XP 7 CD set, but cannot find a similar product for Access 2003. Does anyone know the new name? Thanks John Eget From adtp at touchtelindia.net Tue Nov 16 06:13:38 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 16 Nov 2004 17:43:38 +0530 Subject: [AccessD] Alternating background color in continuous forms? References: <157240-220041131033556327@christopherhawkins.com> Message-ID: <008801c4cbd5$ebb05150$e41865cb@winxp> Christopher, You can see my sample db named HighLightDatasheetRows at Rogers Access Library (other developers section). Link - http://www.rogersaccesslibrary.com This db demonstrates two styles of highlighting - (i) Current Row and (ii) Alternate Rows. Some interesting features are - (a) Anchor Row - In both alternatives, user can pinpoint any row as an anchor row (if desired), by double clicking on it. The anchor row gets highlighted in a special color and continues in this state, till some other row is pinpointed as the new anchor row. If any existing anchor row is to be put back to normal (without pinpointing a new one), simply double click it again. (b) - In case of alternate row highlighting, the form, on opening, has color on odd rows. For replacing it with color on even rows, simply double click on any even numbered row. For reverting back to color on odd numbered rows, double click on any odd numbered row. Note - The technique used is completely non-obtrusive. It does not need any special field (e.g. Yes/No or counter etc) to be added to the source table. No updating or editing of any bound control is involved. No label or unbound text box is used. Only requirement is that the source table should have a field holding unique values. You might like to adapt the underlying approach suitably for your specific needs. (The arrangement demonstrated for datasheets is applicable to continuous forms as well). Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Christopher Hawkins To: accessd at databaseadvisors.com Sent: Wednesday, November 10, 2004 09:05 Subject: [AccessD] Alternating background color in continuous forms? Greetings, all! I want to do something kind of fun. I am trying to figure out how to do alternating background colors in a continuous form. I was looking at conditional formatting in Access 2002, but am not sure how to work out an expression that will do the trick. I am also looking a doing it programmatically, but I think I'd have to do some heavy subclassing, which isn't worth the work just for eye candy. Surely someone must have done this before. Can anyone either offer sugestons on how to figure it out, or post actual code? I'll be sure to give proper credit when it's time to submit the results to the UI Hall of Fame. ;) -Christopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From jmoss111 at bellsouth.net Tue Nov 16 07:22:19 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Tue, 16 Nov 2004 07:22:19 -0600 Subject: [AccessD] developer CD's for 2003 In-Reply-To: <000f01c4cbd2$0a192fd0$8ec2f63f@Desktop> Message-ID: <20041116132203.CBQZ19872.imf17aec.mail.bellsouth.net@jmoss3> John, You will be looking for Microsoft Visual Studio Tools for Office 2003. I just purchased the upgrade at Amazon for $179.99. You don't have to have visual studio to use it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Eget Sent: Tuesday, November 16, 2004 5:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] developer CD's for 2003 I want to deploy an access 2003 database and the customer is willing to purchase the development software. I have the Office Development XP 7 CD set, but cannot find a similar product for Access 2003. Does anyone know the new name? Thanks John Eget -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Nov 16 08:39:20 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 Nov 2004 14:39:20 +0000 Subject: [AccessD] A2003: Design Question Message-ID: Darren, I've done something similar in the past...not sure if this will help...but...if you are using a union, your union knows where it is getting the data. Why not create a field(Entity) in the union that differentiates the data. Here is an example. SELECT tblClient.PK, "Client" AS Entity, tblClient.Data, tblClient.MoreData FROM tblClient ORDER BY tblClient.PK, "Client" WITH OWNERACCESS OPTION; UNION SELECT tblFranchise.PK,"Franchise" AS Entity, tblFranchise.Data, tblFranchise.MoreData FROM tblFranchise WITH OWNERACCESS OPTION; Hope this helps. Mark A. Matte >From: "Darren DICK" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] A2003: Design Question >Date: Tue, 16 Nov 2004 13:24:55 +1100 > >Hi Stuart >Thanks for the reply >In your suggestion I would create a 3rd table called tblEntity - yes? >How does it get populated? > >How would I store entries to the tblTimeBilling table. >IE in the union combo how would I store that PK 4 in this case is a >franchise >Not a client? > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Tuesday, 16 November 2004 12:25 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003: Design Question > >On 16 Nov 2004 at 12:03, Darren DICK wrote: > > > > > BUT my client does work for both the Franchises and individual >Customers. > > In order to present both of them in a TimeBilling Screen I use a union > > query to 'merge' both groups into a single combo > > > > The problem is storing the PK correctly. eg say I select the 4th > > Franchise in the list - it has a PK of 4 Well an entry on the client > > side will also have a PK of 4. > > > > I am tossing up with various ways to deal with this including merging > > both tables into one table and just setting a flag to differentiate > > Clients from Franchises. > > Of course I can have separate fields in the tblTimeBilling for > > FranchiseID and for ClientID. > > > >I'd probably go for a tblEntity with 3 fields: > >ID >EntityType (Franchise or Client) >EntityID > >You can then base your ComboBox on a query something like: > >Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName > >From tblEntities Left Join tblFranchises ....... Left Join TblClients > ...... > > > > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 16 08:59:14 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 09:59:14 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98C@DISABILITYINS01> I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy From Patricia.O'Connor at dfa.state.ny.us Tue Nov 16 09:28:49 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 16 Nov 2004 10:28:49 -0500 Subject: [AccessD] ODBC against Oracle partitioned db Message-ID: Hi all When I use the Oracle ODBC driver against an ORACLE un-partitioned table from Access (either passthru or gui), I have not problem. Data comes back can scroll through 1-30+K records no problem. When I use same driver against an Oracle partitioned table from access, I get temporary freeze ups when scrolling through records even scrolling from column 1 to say col 10 on screen. It doesn't matter how many records in set - scroll down 3-6 records - stop. Sometimes the stall can be 2-5 minutes. Doesn't matter if it is the only thing running on computer. I do not have this problem with an unpartioned set. I waste a good amount of time waiting for access to let me back in. Has anyone run into this and is there a workaround or setting I need to change in the driver configuration. My machine is Win2k, Access2k, Oracle10 Thanks in advance Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** From accessd at shaw.ca Tue Nov 16 09:55:54 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 07:55:54 -0800 Subject: [AccessD] What happens to the recordset? In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF98C@DISABILITYINS01> Message-ID: Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 10:33:17 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 11:33:17 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98D@DISABILITYINS01> Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy From cfoust at infostatsystems.com Tue Nov 16 11:01:14 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 Nov 2004 09:01:14 -0800 Subject: [AccessD] What happens to the recordset? Message-ID: John, I believe the recordset generated in passing as you did it, goes out of scope with the database object it was created on. You haven't instantiated the recordset object, so it has no separate existence. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Tue Nov 16 11:08:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 16 Nov 2004 11:08:28 -0600 Subject: [AccessD] What happens to the recordset? Message-ID: <100F91B31300334B89EC531C9DCB08653F5F62@tccexch01.tappeconstruction.net> John, The Database object instantiates a Recordset to return the field value for you. Since the Recordset instance is not assigned to a variable, it is instantly out of scope and VBA's garbage collection will automatically destroy and cleanup its instance. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -------------------------------------------------------------------------------------------------------------------- The information in this email may vileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 dispec.com Tue Nov 16 11:12:54 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 12:12:54 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98E@DISABILITYINS01> Precisely, but I am dimming the db object in the form header and setting it in the form's OnOpen to save the time of doing that in OnCurrent. Thus it never goes out of scope till the form closes (set = nothing in OnClose). John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, November 16, 2004 12:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? John, I believe the recordset generated in passing as you did it, goes out of scope with the database object it was created on. You haven't instantiated the recordset object, so it has no separate existence. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 16 11:26:25 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 12:26:25 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98F@DISABILITYINS01> IOW similar to a function which returns a variable, when the value returned by that function is not stored, the returned value is destroyed. Makes sense. Of course "VBA's garbage collection will automatically destroy and cleanup its instance" is enough to give me pause... John W. Colby The DIS Database Guy -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, November 16, 2004 12:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? John, The Database object instantiates a Recordset to return the field value for you. Since the Recordset instance is not assigned to a variable, it is instantly out of scope and VBA's garbage collection will automatically destroy and cleanup its instance. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may vileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 John.Clark at niagaracounty.com Tue Nov 16 12:30:59 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 16 Nov 2004 13:30:59 -0500 Subject: [AccessD] duplicates question * can't find in archives Message-ID: I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." From accessd at shaw.ca Tue Nov 16 12:48:47 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 10:48:47 -0800 Subject: [AccessD] What happens to the recordset? In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF98D@DISABILITYINS01> Message-ID: Hi John: Scary...I guess they have not been audited yet. To my understanding only cash-sales do not officially require a invoice number but all sales must have an internal audit number. Even deleted or destroyed transactions must be saved or archived. Of course the USA IRS may not be as ruthless..? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] What happens to the recordset? Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 12:59:14 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 13:59:14 -0500 Subject: [AccessD] duplicates question * can't find in archives Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF990@DISABILITYINS01> You can but... the probability of dirty data is 100%. IOW, the probability that they mis-spelled things they were typing in over and over will make the process of normalization somewhat more painful than dentistry sans Novocain. If you still want to, say so and I will provide info on the "how to". John W. Colby The DIS Database Guy -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Tuesday, November 16, 2004 1:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] duplicates question * can't find in archives I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Nov 16 13:08:35 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 16 Nov 2004 13:08:35 -0600 Subject: [AccessD] duplicates question * can't find in archives Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068CC7@karta-exc-int.Karta.com> My first thought: is to duplicate the student table and rename it to tbl_stndata. Change the old PK to a FK. Add a new PK. Run a duplicate query on the student data table, change the FK to one of those showing. After that's done, then delete the fields no longer needed. Delete all the records duplicated/deleted from the Student table. For example, if records 24, 125, 156 were referencing the same student. The records 125 and 156 could be deleted in the student table and the FK changed to 24 in the student data table. Once both tables have been modified a relationship could be established. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Tuesday, November 16, 2004 12:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] duplicates question * can't find in archives I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 13:10:12 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 14:10:12 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF991@DISABILITYINS01> >Of course the USA IRS may not be as ruthless LOL. The IRS is indeed known for being ruthless... John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 1:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: Scary...I guess they have not been audited yet. To my understanding only cash-sales do not officially require a invoice number but all sales must have an internal audit number. Even deleted or destroyed transactions must be saved or archived. Of course the USA IRS may not be as ruthless..? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] What happens to the recordset? Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 16 13:50:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 16 Nov 2004 13:50:41 -0600 Subject: [AccessD] Re: A2003: Design Question In-Reply-To: <200411161801.iAGI1FL01389@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041116134552.013eceb0@pop3.highstream.net> The "sleek" solution is to design the database correctly. :-) tblParty PartyID Autonumber (pk) PartyFullName PartyFirstName PartyMiddleName PartyLastName etc..... If a client can also be a franchise, then you would need a table to break out the PartyType. tblPartyType PartyTypeID Autonumber (PK) PartyID long integer (fk) PartyType text(20) Otherwise, add PartyType to tblParty. By doing this, you can populate the TimeBilling table with which ever and never worry about it. Robert At 12:01 PM 11/16/2004 -0600, you wrote: >Date: Tue, 16 Nov 2004 12:03:48 +1100 >From: "Darren DICK" >Subject: [AccessD] A2003: Design Question >To: "'Access Developers discussion and problem solving'" > >Message-ID: <200411160103.iAG13udQ009199 at cooper.uws.edu.au> >Content-Type: text/plain; charset="us-ascii" > >Hi Team >I Have a dB that holds data for both Clients (tblClients) and Franchises >(tblFranchises) > >The tblClients holds all the usual client detail stuff - ClientID is the PK >(Autonumber) >tblFranchises holds various bits of information about any particular >franchise - FranchiseID is the PK (Autonumber) > >So essentially 2 entity groups within the dB. > >BUT my client does work for both the Franchises and individual Customers. >In order to present both of them in a TimeBilling Screen I use a union query >to 'merge' both >groups into a single combo > >The problem is storing the PK correctly. eg say I select the 4th Franchise >in the list - it has a PK of 4 >Well an entry on the client side will also have a PK of 4. > >I am tossing up with various ways to deal with this including merging both >tables into one >table and just setting a flag to differentiate Clients from Franchises. >Of course I can have separate fields in the tblTimeBilling for FranchiseID >and for ClientID. > >Just not sure what would be a sleek solution :-)) > >I am sure this is a common type of thing - I just wanted to know some >methods on >how you guys deal with this sort of design question. > >Many thanks > >Darren > From JColby at dispec.com Tue Nov 16 13:53:40 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 14:53:40 -0500 Subject: [AccessD] Setting the LinkMaster/Child field Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF992@DISABILITYINS01> In code I am attempting to set the LinkChildFields and LinkMasterFields properties of the subform control. I get a runtime error 2101 "The setting you entered isn't valid for this property" even though if I go back and look at the property it is set to the value I placed in it. Has anyone encountered this? It appears that this is a string property (text) which is interpreted by the control at subform load time. John W. Colby The DIS Database Guy From rl_stewart at highstream.net Tue Nov 16 13:55:59 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 16 Nov 2004 13:55:59 -0600 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: <200411161801.iAGI1FL01389@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> As you can see, Access and the ODBC driver has trouble with a partioned table. Use Toad or something like it for the type of things you would do in running queries and viewing data. Since it is written for Oracle, it plays with it better. Robert At 12:01 PM 11/16/2004 -0600, you wrote: >Date: Tue, 16 Nov 2004 10:28:49 -0500 >From: "O'Connor, Patricia \(OTDA\)" > >Subject: [AccessD] ODBC against Oracle partitioned db >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi all > >When I use the Oracle ODBC driver against an ORACLE un-partitioned table >from Access (either passthru or gui), I have not problem. Data comes >back can scroll through 1-30+K records no problem. > >When I use same driver against an Oracle partitioned table from access, >I get temporary freeze ups when scrolling through records even scrolling >from column 1 to say col 10 on screen. It doesn't matter how many >records in set - scroll down 3-6 records - stop. Sometimes the stall can >be 2-5 minutes. > >Doesn't matter if it is the only thing running on computer. I do not >have this problem with an unpartioned set. I waste a good amount of >time waiting for access to let me back in. > >Has anyone run into this and is there a workaround or setting I need to >change in the driver configuration. My machine is Win2k, Access2k, >Oracle10 > >Thanks in advance >Patti From cfoust at infostatsystems.com Tue Nov 16 16:10:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 Nov 2004 14:10:05 -0800 Subject: [AccessD] Setting the LinkMaster/Child field Message-ID: Yes, I have. I found that this tends to happen when there is already a string in the property, so I got around it by testing for an existing string. Also, be careful what event you're trying to use to set the property. Don't try to set the links in the Open event of the parent form, although you can set the subform object there. You can set both in the Load event of the form, however. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 11:54 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Setting the LinkMaster/Child field In code I am attempting to set the LinkChildFields and LinkMasterFields properties of the subform control. I get a runtime error 2101 "The setting you entered isn't valid for this property" even though if I go back and look at the property it is set to the value I placed in it. Has anyone encountered this? It appears that this is a string property (text) which is interpreted by the control at subform load time. John W. Colby The DIS Database Guy -- _______________________________________________ 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 Nov 16 22:03:08 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 17 Nov 2004 15:03:08 +1100 Subject: [AccessD] A2003:Test Voracity of URLS Message-ID: <200411170403.iAH43JdQ023690@cooper.uws.edu.au> Hello all I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. I know I can ping http://somewebsite.someserver.com.au and get a result but how would I capture the ping 'reply' from DOS to a table? Or...if any of you already have a method they would like to share them please let me know Make sense?? See ya Darren From stuart at lexacorp.com.pg Wed Nov 17 00:04:51 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 17 Nov 2004 16:04:51 +1000 Subject: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <200411170403.iAH43JdQ023690@cooper.uws.edu.au> Message-ID: <419B76A3.10791.1B493706@lexacorp.com.pg> On 17 Nov 2004 at 15:03, Darren DICK wrote: > > So...Is there a way I can type in say...http://somewebsite.someserver.com.au > and return "true" if the site exists or "false" if the site does not exist. > > I know I can ping http://somewebsite.someserver.com.au > and get a result > but how would I capture the ping 'reply' from DOS to a table? > > Or...if any of you already have a method they would like to share them > please let me know > Are they all domains or are some of them links to pages? If the latter, you need to test whether the domain is valid (using DNS lookup) and also test whether a link valid is valid (ie look for 404 messages in response to HTTP requests). In other words you will have to write your own HTTP engine :-( That will still not detect links that point to "parked" domains (take a look at http://www.airniugini.com as an example of a parked domain) -- Stuart From Paul.Rogers at SummitMedia.co.uk Wed Nov 17 03:29:12 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 17 Nov 2004 09:29:12 -0000 Subject: [AccessD] IMESentenceMode gremlin Message-ID: A slight change to a cmd button on a form has Access offering a fault, 'You entered an expression that has an invalid reference to the property IMESentenceMode'. The debug highlight is of an unrelated, unchanged piece of code. Anyone been here, please, and answered this seemingly strange error. Cheers paul From Gustav at cactus.dk Wed Nov 17 03:35:40 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Nov 2004 10:35:40 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From actebs at actebs.com.au Wed Nov 17 04:57:23 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 17 Nov 2004 21:57:23 +1100 Subject: [AccessD] Cool Date Picker Message-ID: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Guys, I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... Thanx Vlad From Erwin.Craps at ithelps.be Wed Nov 17 06:29:25 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 17 Nov 2004 13:29:25 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> Seeing this, I wunder if there is someone who has some code (and wants to share it) to check all hyperlinks in the favorites of IE to see if the page/website still exists? Beeing on the internet for probably about 10 years now got me a lot of favorites that are aged and no longer exists... I like to clean up (sometimes). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, November 17, 2004 10:36 AM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Nov 17 07:47:20 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 17 Nov 2004 08:47:20 -0500 Subject: [AccessD] Cool Date Picker In-Reply-To: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: <001801c4ccab$f62377d0$0200a8c0@COA3> http://lebans.com/monthcalendar.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Wednesday, November 17, 2004 5:57 AM To: Access Group (E-mail) Subject: [AccessD] Cool Date Picker Guys, I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... Thanx Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Wed Nov 17 07:49:14 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 17 Nov 2004 14:49:14 +0100 Subject: [AccessD] Cool Date Picker References: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: <005601c4ccac$41dc14c0$0100a8c0@razvoj> See Lyle Fairfield's date_picker.zip on http://ffdba.com/newIndex.htm Ervin ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: 17 November, 2004 11:57 AM Subject: [AccessD] Cool Date Picker > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > 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 Nov 17 08:16:33 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 17 Nov 2004 09:16:33 -0500 Subject: [AccessD] Cool Date Picker Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A27D2@xlivmbx21.aig.com> Try Drew's demo at http://www.mvps.org/access/forms/frm0050.htm Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS > Sent: Wednesday, November 17, 2004 5:57 AM > To: Access Group \(E-mail\) > Subject: [AccessD] Cool Date Picker > > Guys, > > I remember ages ago someone had developed a really cool date picker that > did not require an ActiveX control. I had it in my favourites and have > since accidentally lost all my favourites after a recent machine format > **Don't you hate that** : (. If someone could post the link it would be > much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Nov 17 08:45:41 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 17 Nov 2004 08:45:41 -0600 Subject: [AccessD] Cool Date Picker In-Reply-To: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> References: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: That would probably be Drew's Mini Calendar I would guess. http://www.wolfwares.com/Access/microsoft_access.htm On Wed, 17 Nov 2004 21:57:23 +1100, ACTEBS wrote: > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Nov 17 10:43:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Nov 2004 08:43:39 -0800 Subject: [AccessD] IMESentenceMode gremlin Message-ID: Are you working with Windows CE? Charlotte Foust -----Original Message----- From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] Sent: Wednesday, November 17, 2004 1:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IMESentenceMode gremlin A slight change to a cmd button on a form has Access offering a fault, 'You entered an expression that has an invalid reference to the property IMESentenceMode'. The debug highlight is of an unrelated, unchanged piece of code. Anyone been here, please, and answered this seemingly strange error. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjewett at bayplace.com Wed Nov 17 11:51:24 2004 From: pjewett at bayplace.com (Phil Jewett) Date: Wed, 17 Nov 2004 09:51:24 -0800 Subject: [AccessD] Objects won't close after binding a form Message-ID: I had an unbound form with a handful of subforms that was working fine - nothing fancy. All the other forms in the mdb are regular bound forms and they work fine. I then bound the unbound form to a table and added a few fields. The form worked fine, except that the form won't close - the Close button does nothing. The form does not hang - it just won't close. If I try to switch to design mode, I get the error message: You can't switch to a different view at this time. Code was executing when you tried to switch views. If I then open up any other object (form, table) the Close buttons on them don't work either! But if I hit the Close button on the database window, the other windows (not the database window) will then close - one at a time, including the problem form. Very odd. If I unbind the form, the problem sometimes, but not always, goes away. Sometimes the form won't even close from design view. I've tried backups, exporting the objects to a blank mdb, compacting, etc. The problem is wonderfully reproduceable! I suppose I can just stay with the unbound form, but I hate to build a system with a suspect mdb. Using Access 2000 SP3 with SQL Server 2000. Phil Jewett From martyconnelly at shaw.ca Wed Nov 17 14:11:14 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 12:11:14 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> Message-ID: <419BB062.40007@shaw.ca> I have some really rough code written for Win 95, let me see if I can upgraded it but just grab all the ".url" files in the sub directories below that contain your favourites in win xp or win 2000 C:\Documents and Settings\usename\Favorites then pass your .url filename to this routine to drag out the http address Then pass http url string to xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim strLine As String 'grab the folder already so just get FileName 'Set oFolder = FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) Set oText = oFile.OpenAsTextStream Do strLine = oText.ReadLine 'contains [InternetShortcut] Loop Until strLine = "[InternetShortcut]" strLine = oText.ReadLine 'should contains URL= oText.Close ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access Write As #1 ' Save the file. 'Open FileNaam For Binary Access Read As #1 ' Read the file. ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text 'Get #1, , VarBuf Debug.Print "**" & strLine & "**" ' Close #1 ' MsgBox "URL sucessfully added to Favorites!", vbInformation GetHTTPfromURL = strLine End Function Erwin Craps - IT Helps wrote: >Seeing this, I wunder if there is someone who has some code (and wants >to share it) to check all hyperlinks in the favorites of IE to see if >the page/website still exists? > >Beeing on the internet for probably about 10 years now got me a lot of >favorites that are aged and no longer exists... > >I like to clean up (sometimes). > >Erwin > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, November 17, 2004 10:36 AM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >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 DWUTKA at marlow.com Wed Nov 17 10:43:28 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 17 Nov 2004 10:43:28 -0600 Subject: [AccessD] Cool Date Picker Message-ID: <123701F54509D9119A4F00D0B747349016D0A2@main2.marlow.com> Actually the last 'finished' version is on my website. http://www.wolfwares.com Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Wednesday, November 17, 2004 8:17 AM To: 'Access Developers discussion and problem solving'; 'ACTEBS' Subject: RE: [AccessD] Cool Date Picker Try Drew's demo at http://www.mvps.org/access/forms/frm0050.htm Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS > Sent: Wednesday, November 17, 2004 5:57 AM > To: Access Group \(E-mail\) > Subject: [AccessD] Cool Date Picker > > Guys, > > I remember ages ago someone had developed a really cool date picker that > did not require an ActiveX control. I had it in my favourites and have > since accidentally lost all my favourites after a recent machine format > **Don't you hate that** : (. If someone could post the link it would be > much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Nov 17 10:17:24 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 17 Nov 2004 11:17:24 -0500 Subject: [AccessD] A2003: Design Question In-Reply-To: <419994EE.4020904@rogers.com> References: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> <419994EE.4020904@rogers.com> Message-ID: <419B7994.1030907@rogers.com> Arthur Fuller wrote: > Darren DICK wrote: > >> Hi Stuart >> Thanks for the reply >> In your suggestion I would create a 3rd table called tblEntity - yes? >> How does it get populated? >> >> How would I store entries to the tblTimeBilling table. >> IE in the union combo how would I store that PK 4 in this case is a >> franchise >> Not a client? >> >> Many thanks >> >> Darren >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Tuesday, 16 November 2004 12:25 PM >> To: Access Developers discussion and problemsolving >> Subject: Re: [AccessD] A2003: Design Question >> >> On 16 Nov 2004 at 12:03, Darren DICK wrote: >> >> >> >>> >>> BUT my client does work for both the Franchises and individual >>> Customers. In order to present both of them in a TimeBilling Screen >>> I use a union query to 'merge' both groups into a single combo >>> >>> The problem is storing the PK correctly. eg say I select the 4th >>> Franchise in the list - it has a PK of 4 Well an entry on the client >>> side will also have a PK of 4. >>> >>> I am tossing up with various ways to deal with this including >>> merging both tables into one table and just setting a flag to >>> differentiate Clients from Franchises. >>> Of course I can have separate fields in the tblTimeBilling for >>> FranchiseID and for ClientID. >>> >>> >> >> >> I'd probably go for a tblEntity with 3 fields: >> >> ID >> EntityType (Franchise or Client) >> EntityID >> >> You can then base your ComboBox on a query something like: >> >> Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as >> EntityName >> >>> From tblEntities Left Join tblFranchises ....... Left Join TblClients >> >> ...... >> >> >> >> >> -- >> Stuart >> >> >> >> > Is there a profitable reason to store these entities in different > tables? There may well be, but in your problem description it is not > apparent. If my hunch is correct, then you can put both Franchises and > Customers in the same table, adding a flag to indicate which. There is > the possibility however that an entity is both a Customer and a > Franchise, in which case a boolean won't do, so replace it with a > numeric. > > Up side: much simpler combo selectors. > Down side: selecting only one or the other type demands hitting the > whole table (unless the BE is SQL). > > HTH, > Arthur SELECT EntityID, EntityName, IIF(EntityType="C", "Customer","Franchise") AS Type FROM tblEntities ORDER BY EntityName You could ORDER BY EntityType first to gather them into two groups. From Subscriptions at servicexp.com Wed Nov 17 16:01:19 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 17 Nov 2004 17:01:19 -0500 Subject: [AccessD] Cool Date Picker In-Reply-To: <005601c4ccac$41dc14c0$0100a8c0@razvoj> Message-ID: I can attest to Lyle's date_picker. It's rock solid and extremely easy to use. Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza Sent: Wednesday, November 17, 2004 8:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cool Date Picker See Lyle Fairfield's date_picker.zip on http://ffdba.com/newIndex.htm Ervin ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: 17 November, 2004 11:57 AM Subject: [AccessD] Cool Date Picker > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 17 16:12:29 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 09:12:29 +1100 Subject: [AccessD] A2003: Design Question In-Reply-To: <419B7994.1030907@rogers.com> Message-ID: <200411172212.iAHMCcdQ022664@cooper.uws.edu.au> Thanks Arthur and Stuart et al who replied I combined the tables and set a flag in each to dictate their Entity Type Simple solution solved everything Many thanks See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, 18 November 2004 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Design Question Arthur Fuller wrote: > Darren DICK wrote: > >> Hi Stuart >> Thanks for the reply >> In your suggestion I would create a 3rd table called tblEntity - yes? >> How does it get populated? >> >> How would I store entries to the tblTimeBilling table. >> IE in the union combo how would I store that PK 4 in this case is a >> franchise Not a client? >> >> Many thanks >> >> Darren >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Tuesday, 16 November 2004 12:25 PM >> To: Access Developers discussion and problemsolving >> Subject: Re: [AccessD] A2003: Design Question >> >> On 16 Nov 2004 at 12:03, Darren DICK wrote: >> >> >> >>> >>> BUT my client does work for both the Franchises and individual >>> Customers. In order to present both of them in a TimeBilling Screen >>> I use a union query to 'merge' both groups into a single combo >>> >>> The problem is storing the PK correctly. eg say I select the 4th >>> Franchise in the list - it has a PK of 4 Well an entry on the client >>> side will also have a PK of 4. >>> >>> I am tossing up with various ways to deal with this including >>> merging both tables into one table and just setting a flag to >>> differentiate Clients from Franchises. >>> Of course I can have separate fields in the tblTimeBilling for >>> FranchiseID and for ClientID. >>> >>> >> >> >> I'd probably go for a tblEntity with 3 fields: >> >> ID >> EntityType (Franchise or Client) >> EntityID >> >> You can then base your ComboBox on a query something like: >> >> Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as >> EntityName >> >>> From tblEntities Left Join tblFranchises ....... Left Join >>> TblClients >> >> ...... >> >> >> >> >> -- >> Stuart >> >> >> >> > Is there a profitable reason to store these entities in different > tables? There may well be, but in your problem description it is not > apparent. If my hunch is correct, then you can put both Franchises and > Customers in the same table, adding a flag to indicate which. There is > the possibility however that an entity is both a Customer and a > Franchise, in which case a boolean won't do, so replace it with a > numeric. > > Up side: much simpler combo selectors. > Down side: selecting only one or the other type demands hitting the > whole table (unless the BE is SQL). > > HTH, > Arthur SELECT EntityID, EntityName, IIF(EntityType="C", "Customer","Franchise") AS Type FROM tblEntities ORDER BY EntityName You could ORDER BY EntityType first to gather them into two groups. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Nov 17 17:33:39 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 15:33:39 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> <419BB062.40007@shaw.ca> Message-ID: <419BDFD3.90008@shaw.ca> Here is the rest of the basic routines takes a couple of minutes for 10000 favourites I was amazed I only had 100 duplicates. I used to dump to an xml file of favourites that I could cart around. Just create a table to hold all your favourite url's with 3 text fields 255 long to hold directory path and filename 1 numeric field for file length 1 date field 1 memo field to hold http url, it will go longer than 255 characters for things like google addresses 'temporary database Dim MyDb As DATABASE Dim MyRs As Recordset ' findsub "C:\Documents and Settings\marty\Favorites\", "*url" Sub testgrab() Set MyDb = CurrentDb Set MyRs = MyDb.OpenRecordset("TempURL") FindSub "C:\Documents and Settings\marty\Favorites\", "*url" Set MyRs = Nothing Set MyDb = Nothing End Sub Sub FindSub(strStart As String, strFindWhat As String) Dim arrFindDir() As String Dim strFind As String Dim i As Long ChDrive (Left(strStart, 3)) ChDir (strStart) Call DirSub(strFindWhat, strStart) strFind = Dir("*.*", vbDirectory) i = 0 Do Until strFind = "" ReDim Preserve arrFindDir(i) arrFindDir(i) = strFind i = i + 1 strFind = Dir() Loop For i = 0 To UBound(arrFindDir) If Dir(arrFindDir(i), vbNormal) = "" And Left(arrFindDir(i), 1) <> "." Then ' Recursive call Call FindSub(strStart & arrFindDir(i) & "\", strFindWhat) ChDir (strStart) End If Next End Sub Sub DirSub(strFindWhat, strStart) Dim strFindfile As String Dim strFullPathName As String 'temporary database 'Dim MyDb As DATABASE 'Dim MyRs As Recordset 'Set MyDb = CurrentDb 'Set MyRs = MyDb.OpenRecordset("TempURL") strFindfile = Dir(strFindWhat, vbNormal) Do While strFindfile <> "" 'Debug.Print strStart & " - " & strFindfile '.lstFiles.AddItem strStart & strFindfile ' colMyList.Add strStart & strFindfile strFullPathName = strStart & strFindfile Debug.Print Len(strFullPathName) & "-" & strFullPathName MyRs.AddNew MyRs!Dirnaam = strStart MyRs!FileNaam = strFullPathName MyRs!file = strFindfile On Error Resume Next 'Weird url filename problems here that are dos illegal because of "?" characters ' you can pick out of table as they will have no filelength. MyRs!FileLen = FileLen(strFullPathName) MyRs!datTime = FileDateTime(strFullPathName) MyRs!Http = GetHTTPfromURL(strFullPathName) On Error GoTo 0 MyRs.Update strFindfile = Dir() Loop 'Set MyRs = Nothing 'Set MyDb = Nothing End Sub MartyConnelly wrote: > I have some really rough code written for Win 95, let me see if I can > upgraded it > but just grab all the ".url" files in the sub directories below that > contain your favourites in win xp or win 2000 > C:\Documents and Settings\usename\Favorites > then pass your .url filename to this routine to drag out the http address > Then pass http url string to xmlhttp or winhttp this will return a 404 > if not valid or 500 if server gone etc. > > Public Function GetHTTPfromURL(FileNaam As String) As String > Dim FSO As New Scripting.FileSystemObject > Dim oFile As file > Dim oText As TextStream > Dim strLine As String > > 'grab the folder already so just get FileName > 'Set oFolder = FSO.GetFolder(Path) > Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary > Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine > End Function > > Erwin Craps - IT Helps wrote: > >> Seeing this, I wunder if there is someone who has some code (and wants >> to share it) to check all hyperlinks in the favorites of IE to see if >> the page/website still exists? >> >> Beeing on the internet for probably about 10 years now got me a lot of >> favorites that are aged and no longer exists... >> >> I like to clean up (sometimes). >> >> Erwin >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Wednesday, November 17, 2004 10:36 AM >> To: accessd at databaseadvisors.com >> Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >> Hi Darren >> >> We use these functions: >> >> >> >> Private Declare Function URLDownloadToFile Lib "urlmon" Alias >> "URLDownloadToFileA" ( _ >> ByVal pCaller As Long, _ >> ByVal szURL As String, _ >> ByVal szFileName As String, _ >> ByVal dwReserved As Long, _ >> ByVal lpfnCB As Long) _ >> As Long >> >> Public Function IsURL(ByVal strURL As String) As Boolean >> >> ' Usage: Check if URL strURL is alive and reachable. >> ' booURL = IsURL("http://www.ibm.com") >> ' booURL = IsURL("ftp://ftp.novell.com") >> ' >> ' Note: Protocol header like "http://" must be provided. >> ' >> ' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >> End Function >> >> >> >> If your URLs contains html document name you will have to modify the >> code to use that and not append index.html. >> >> /gustav >> >> >> >>>>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>> >> >> I have an educational client who has a CD full of Education URL's >> (Zillion's of 'em) Occasionally someone has to test to see if the links >> are broken or not (Manually ) >> >> I thought this would be a perfect application for Access Set up a table >> of URLs and loop through 'em and return TRUE or FALSE >> >> So...Is there a way I can type in >> say...http://somewebsite.someserver.com.au >> and return "true" if the site exists or "false" if the site does not >> exist. >> >> -- >> _______________________________________________ >> 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 d.dick at uws.edu.au Wed Nov 17 18:58:27 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 11:58:27 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: Message-ID: <200411180058.iAI0wbdQ015891@cooper.uws.edu.au> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ 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 Wed Nov 17 19:08:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 12:08:54 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419BB062.40007@shaw.ca> Message-ID: <200411180109.iAI194dQ024697@cooper.uws.edu.au> Hi Marty Thanks for the reply Couple of Q's though :-)) I can't compile past the... Dim FSO as New Scripting.FileSystemObject What do I need to ref to get this to work? I tried alternative of.... Set fso = CreateObject("Scripting.FileSystemObject") and managed to get it to compile and the code 'seemed' to work. In that it filled the temp table with what looked to be correct values - but Dunno if this is the same The Public Function GetHTTPfromURL didn't seem to populate the HTTP Column the temp table Once I do have all the relevant information in the table - how do I actually tell if The link is live (or have I missed it in the code) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 7:11 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS I have some really rough code written for Win 95, let me see if I can upgraded it but just grab all the ".url" files in the sub directories below that contain your favourites in win xp or win 2000 C:\Documents and Settings\usename\Favorites then pass your .url filename to this routine to drag out the http address Then pass http url string to xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim strLine As String 'grab the folder already so just get FileName 'Set oFolder = FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) Set oText = oFile.OpenAsTextStream Do strLine = oText.ReadLine 'contains [InternetShortcut] Loop Until strLine = "[InternetShortcut]" strLine = oText.ReadLine 'should contains URL= oText.Close ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access Write As #1 ' Save the file. 'Open FileNaam For Binary Access Read As #1 ' Read the file. ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text 'Get #1, , VarBuf Debug.Print "**" & strLine & "**" ' Close #1 ' MsgBox "URL sucessfully added to Favorites!", vbInformation GetHTTPfromURL = strLine End Function Erwin Craps - IT Helps wrote: >Seeing this, I wunder if there is someone who has some code (and wants >to share it) to check all hyperlinks in the favorites of IE to see if >the page/website still exists? > >Beeing on the internet for probably about 10 years now got me a lot of >favorites that are aged and no longer exists... > >I like to clean up (sometimes). > >Erwin > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, November 17, 2004 10:36 AM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >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 terry.mace at baesystems.com Wed Nov 17 19:36:57 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 18 Nov 2004 12:06:57 +1030 Subject: [AccessD] Corrupt Data File Message-ID: Help!! I have a store management database application in Ac97 and last night the back end data file was corrupted. I have run the Ac97 repair tool and also Jetcomp.exe on the file and they both say the file is OK. The problem is when I attempt to open it I get the following message: "'Index1' isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names." OK /HELP Clicking on the OK button just terminates the opening process. Due to an undiscovered (until now!) quirk in our backup system, this file has never been backed up. The file size is 7.2Mb and contains about 7000 records. A zipped copy is about 1.6Mb. Any advice on how or who could fix it would be most appreciated. Terry Mace BAE Systems Melbourne, Australia From jmhla at earthlink.net Wed Nov 17 19:56:53 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 17:56:53 -0800 Subject: [AccessD] Make front end see new table in back end. Message-ID: <200411180156.iAI1uhL09921@databaseadvisors.com> Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g From jwcolby at colbyconsulting.com Wed Nov 17 20:07:15 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 17 Nov 2004 21:07:15 -0500 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <200411180156.iAI1uhL09921@databaseadvisors.com> Message-ID: <007101c4cd13$54a52bc0$e8dafea9@ColbyM6805> File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ 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 Wed Nov 17 20:31:17 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 13:31:17 +1100 Subject: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419B76A3.10791.1B493706@lexacorp.com.pg> Message-ID: <200411180231.iAI2VRdR004987@cooper.uws.edu.au> Thanks for the reply Stuart I dunno what they are They are just a gazillion URL type links I just saw them written on a page and was told each one was being 'viewed' manually I thought there must be an easier way Some Egs are http://uws.edu.au/staff/adminorg/academic/edc/av_services http://uws.edu.au/staff/adminorg/academic/edc/vcf http://waceinc.org http://fit.qut.edu.au/courses/undergrad/coop/ Also a lot of them have .index.html and readset1.htm etc At the end of the URL Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, 17 November 2004 5:05 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Test Voracity of URLS On 17 Nov 2004 at 15:03, Darren DICK wrote: > > So...Is there a way I can type in > say...http://somewebsite.someserver.com.au > and return "true" if the site exists or "false" if the site does not exist. > > I know I can ping http://somewebsite.someserver.com.au > and get a result but how > would I capture the ping 'reply' from DOS to a table? > > Or...if any of you already have a method they would like to share them > please let me know > Are they all domains or are some of them links to pages? If the latter, you need to test whether the domain is valid (using DNS lookup) and also test whether a link valid is valid (ie look for 404 messages in response to HTTP requests). In other words you will have to write your own HTTP engine :-( That will still not detect links that point to "parked" domains (take a look at http://www.airniugini.com as an example of a parked domain) -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Wed Nov 17 20:50:16 2004 From: pcs at azizaz.com (pcs at azizaz.com) Date: Thu, 18 Nov 2004 12:50:16 +1000 Subject: [AccessD] Corrupt Data File References: Message-ID: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Are you able to import the backendDb tables into a new empty db? Regards Borge ----- Original Message ----- From: "MACE, Terry" To: "'Access Developers discussion and problem solving'" Sent: Thursday, November 18, 2004 11:36 AM Subject: [AccessD] Corrupt Data File > > Help!! > > I have a store management database application in Ac97 and last night the > back end data file was corrupted. I have run the Ac97 repair tool and also > Jetcomp.exe on the file and they both say the file is OK. > > The problem is when I attempt to open it I get the following message: > > "'Index1' isn't an index in this table. Look in the indexes collection of > the TableDef object to determine the valid index names." OK /HELP > > Clicking on the OK button just terminates the opening process. Due to an > undiscovered (until now!) quirk in our backup system, this file has never > been backed up. The file size is 7.2Mb and contains about 7000 records. A > zipped copy is about 1.6Mb. > > Any advice on how or who could fix it would be most appreciated. > > Terry Mace > BAE Systems > Melbourne, Australia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From martyconnelly at shaw.ca Wed Nov 17 20:50:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 18:50:52 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <200411180109.iAI194dQ024697@cooper.uws.edu.au> Message-ID: <419C0E0C.7050405@shaw.ca> Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that it >filled the temp table with what looked to be correct values - but Dunno if >this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP Column >the temp table > >Once I do have all the relevant information in the table - how do I actually >tell if >The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories below >that contain your favourites in win xp or win 2000 C:\Documents and >Settings\usename\Favorites then pass your .url filename to this routine to >drag out the http address Then pass http url string to xmlhttp or winhttp >this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New >Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim >strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access >Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ >> ByVal pCaller As Long, _ >> ByVal szURL As String, _ >> ByVal szFileName As String, _ >> ByVal dwReserved As Long, _ >> ByVal lpfnCB As Long) _ >> As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the links >>are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a table >>of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Wed Nov 17 21:12:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 14:12:33 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419C0E0C.7050405@shaw.ca> Message-ID: <200411180312.iAI3CidQ011702@cooper.uws.edu.au> Hi Marty I have Windows Script Host Object Model Referenced It still fails on the line FSO As New Scripting.FileSystemObject The reference file is... C:\Windows\System32\wshom.ocx I have it at the top (Welll 3rd at least) of the available references Can you remove you reference to it and decompile to see if it fails on that line for you?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 d.dick at uws.edu.au Wed Nov 17 21:28:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 14:28:01 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419C0E0C.7050405@shaw.ca> Message-ID: <200411180328.iAI3SCdQ026231@cooper.uws.edu.au> Hi Marty It is now failing on HttpReq.send In the Function testurlxml I think it's time to quit - can't get it to work I really am grateful for your time :-)) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 jmhla at earthlink.net Wed Nov 17 21:39:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 19:39:48 -0800 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <007101c4cd13$54a52bc0$e8dafea9@ColbyM6805> Message-ID: <000001c4cd20$414b54c0$6501a8c0@delllaptop> Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 17 21:56:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 17 Nov 2004 22:56:08 -0500 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <000001c4cd20$414b54c0$6501a8c0@delllaptop> Message-ID: <000301c4cd22$8a112ca0$e8dafea9@ColbyM6805> We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Wed Nov 17 22:05:29 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 20:05:29 -0800 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <000301c4cd22$8a112ca0$e8dafea9@ColbyM6805> Message-ID: <000e01c4cd23$dabdfc90$6501a8c0@delllaptop> Does the book on the tread mill say way a wizard button will not let you go to a new record JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 7:56 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 17 23:36:53 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 21:36:53 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <200411180312.iAI3CidQ011702@cooper.uws.edu.au> Message-ID: <419C34F5.3080300@shaw.ca> Arggh it is in both with a different intial reference IWshRuntimeLibrary instead of Scripting, you can see the difference in object browser. also in scrrun.dll Microsoft Scripting Runtime I just looked at the first one. You should have standard Microsoft XML V 4.0 or 3 if running win 2000 or XP Installed by IE 6.0 or OS, unless some has deinstalled c:\windows\system32\msxml4.dll Darren DICK wrote: >Hi Marty >I have Windows Script Host Object Model Referenced >It still fails on the line FSO As New Scripting.FileSystemObject >The reference file is... >C:\Windows\System32\wshom.ocx >I have it at the top (Welll 3rd at least) of the available references > >Can you remove you reference to it and decompile to see if it fails on that >line for you?? > >Many thanks > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, 18 November 2004 1:51 PM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >Reference for scripting filesystem object Wshom.ocx Windows Script Host >Model generically known as WSH > >You should be getting Http Url printed out with asterix in debug window if >it is working, before it is placed in the memo field, maybe a typo name >error in table or code > >The code to test validity of url could be something like this with request >status being returned as 404 or 500 for invalid just like http error codes; >200 for normal or good > >The response Debug.Print HttpReq.StatusText will give you a better >explanation. > >You should have some version of XML installed if using IE 6.0 > >'?testurlxml("http://www.microsoft.com") >Function testurlxml(strURL As String) As String > Dim HttpReq As Object > Set HttpReq = CreateObject("MSXML2.XMLHTTP") > HttpReq.Open "GET", strURL, False > HttpReq.send > 'Debug.Print HttpReq.responseText 'this is returned html string > Debug.Print HttpReq.Status > Debug.Print HttpReq.StatusText > testurlxml = HttpReq.Status '200 normal End Function > >You can also verify legality of url string Private Declare Function >PathIsURL Lib "shlwapi.dll" _ > Alias "PathIsURLA" _ > (ByVal pszPath As String) As Long > > > >Private Function IsPathAURL(ByVal sPath As String) As Boolean > > 'Tests a given string to determine if it > 'conforms to a valid URL format. Returns > 'True if sPath has a valid URL format, > 'or False otherwise. > > 'This function does not verify that the > 'path points to an existing site, only > 'that it has a valid URL format. > > IsPathAURL = PathIsURL(sPath) = 1 > >End Function > >Darren DICK wrote: > > > >>Hi Marty >>Thanks for the reply >>Couple of Q's though :-)) >> >>I can't compile past the... >> >>Dim FSO as New Scripting.FileSystemObject >> >>What do I need to ref to get this to work? >> >>I tried alternative of.... >> >>Set fso = CreateObject("Scripting.FileSystemObject") >> >>and managed to get it to compile and the code 'seemed' to work. In that >>it filled the temp table with what looked to be correct values - but >>Dunno if this is the same >> >>The Public Function GetHTTPfromURL didn't seem to populate the HTTP >>Column the temp table >> >>Once I do have all the relevant information in the table - how do I >>actually tell if The link is live (or have I missed it in the code) >> >>Many thanks >> >>Darren >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>MartyConnelly >>Sent: Thursday, 18 November 2004 7:11 AM >>To: Access Developers discussion and problem solving >>Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS >> >>I have some really rough code written for Win 95, let me see if I can >>upgraded it but just grab all the ".url" files in the sub directories >>below that contain your favourites in win xp or win 2000 C:\Documents >>and Settings\usename\Favorites then pass your .url filename to this >>routine to drag out the http address Then pass http url string to >>xmlhttp or winhttp this will return a 404 if not valid or 500 if server >> >> >gone etc. > > >>Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >>New Scripting.FileSystemObject Dim oFile As file Dim oText As >>TextStream Dim strLine As String >> >>'grab the folder already so just get FileName 'Set oFolder = >>FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) >> Set oText = oFile.OpenAsTextStream >> Do >> strLine = oText.ReadLine 'contains [InternetShortcut] >> Loop Until strLine = "[InternetShortcut]" >> strLine = oText.ReadLine 'should contains URL= >> oText.Close >> >> ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >>Access Write As #1 ' Save the file. >> 'Open FileNaam For Binary Access Read As #1 ' Read the file. >> ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text >> 'Get #1, , VarBuf >> Debug.Print "**" & strLine & "**" >> ' Close #1 >> ' MsgBox "URL sucessfully added to Favorites!", vbInformation >> GetHTTPfromURL = strLine >>End Function >> >>Erwin Craps - IT Helps wrote: >> >> >> >> >> >>>Seeing this, I wunder if there is someone who has some code (and wants >>>to share it) to check all hyperlinks in the favorites of IE to see if >>>the page/website still exists? >>> >>>Beeing on the internet for probably about 10 years now got me a lot of >>>favorites that are aged and no longer exists... >>> >>>I like to clean up (sometimes). >>> >>>Erwin >>> >>> >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>>Brock >>>Sent: Wednesday, November 17, 2004 10:36 AM >>>To: accessd at databaseadvisors.com >>>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >>> >>>Hi Darren >>> >>>We use these functions: >>> >>> >>> >>>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>>ByVal lpfnCB As Long) _ As Long >>> >>>Public Function IsURL(ByVal strURL As String) As Boolean >>> >>>' Usage: Check if URL strURL is alive and reachable. >>>' booURL = IsURL("http://www.ibm.com") >>>' booURL = IsURL("ftp://ftp.novell.com") >>>' >>>' Note: Protocol header like "http://" must be provided. >>>' >>>' 2001-12-09. Cactus Data ApS. CPH. >>> >>>' File found at most URLs. >>>Const cstrFileIndex As String = "index.htm" >>> >>>IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >>> >>>End Function >>> >>> >>> >>>If your URLs contains html document name you will have to modify the >>>code to use that and not append index.html. >>> >>>/gustav >>> >>> >>> >>> >>> >>> >>> >>>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>I have an educational client who has a CD full of Education URL's >>>(Zillion's of 'em) Occasionally someone has to test to see if the >>>links are broken or not (Manually ) >>> >>>I thought this would be a perfect application for Access Set up a >>>table of URLs and loop through 'em and return TRUE or FALSE >>> >>>So...Is there a way I can type in >>>say...http://somewebsite.someserver.com.au >>>and return "true" if the site exists or "false" if the site does not >>>exist. >>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From terry.mace at baesystems.com Wed Nov 17 23:41:04 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 18 Nov 2004 16:11:04 +1030 Subject: [AccessD] Corrupt Data File Message-ID: Borge, That worked! I didn't think to try that - there was a corrupted test report that I don't need, so all the data is safe - yea! Thanks Terry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of pcs at azizaz.com Sent: Thursday, 18 November 2004 13:50 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Corrupt Data File Are you able to import the backendDb tables into a new empty db? Regards Borge ----- Original Message ----- From: "MACE, Terry" To: "'Access Developers discussion and problem solving'" Sent: Thursday, November 18, 2004 11:36 AM Subject: [AccessD] Corrupt Data File > > Help!! > > I have a store management database application in Ac97 and last night the > back end data file was corrupted. I have run the Ac97 repair tool and also > Jetcomp.exe on the file and they both say the file is OK. > > The problem is when I attempt to open it I get the following message: > > "'Index1' isn't an index in this table. Look in the indexes collection of > the TableDef object to determine the valid index names." OK /HELP > > Clicking on the OK button just terminates the opening process. Due to an > undiscovered (until now!) quirk in our backup system, this file has never > been backed up. The file size is 7.2Mb and contains about 7000 records. A > zipped copy is about 1.6Mb. > > Any advice on how or who could fix it would be most appreciated. > > Terry Mace > BAE Systems > Melbourne, Australia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Nov 17 23:44:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 21:44:23 -0800 Subject: [AccessD] Corrupt Data File References: Message-ID: <419C36B7.6060200@shaw.ca> Try Peter Miller at http://www.pksolutions.com If it is fixable the cost is between $200 and $500 You just ftp the file to their site. MACE, Terry wrote: >Help!! > >I have a store management database application in Ac97 and last night the >back end data file was corrupted. I have run the Ac97 repair tool and also >Jetcomp.exe on the file and they both say the file is OK. > >The problem is when I attempt to open it I get the following message: > >"'Index1' isn't an index in this table. Look in the indexes collection of >the TableDef object to determine the valid index names." OK /HELP > >Clicking on the OK button just terminates the opening process. Due to an >undiscovered (until now!) quirk in our backup system, this file has never >been backed up. The file size is 7.2Mb and contains about 7000 records. A >zipped copy is about 1.6Mb. > >Any advice on how or who could fix it would be most appreciated. > >Terry Mace >BAE Systems >Melbourne, Australia > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Thu Nov 18 00:03:51 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 22:03:51 -0800 Subject: [AccessD] New Record wizard button fails Message-ID: <001601c4cd34$635d9f50$6501a8c0@delllaptop> On click it says I cant go to that record JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Erwin.Craps at ithelps.be Thu Nov 18 02:06:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 Nov 2004 09:06:37 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5537@stekelbes.ithelps.local> Thank you, I added the api function Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long To get the location of the favorites folder. I modified some code that you can find in the excellent API guide on http://www.mentalis.org/index2.shtml Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, November 18, 2004 12:34 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Here is the rest of the basic routines takes a couple of minutes for 10000 favourites I was amazed I only had 100 duplicates. From Erwin.Craps at ithelps.be Thu Nov 18 02:23:50 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 Nov 2004 09:23:50 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5538@stekelbes.ithelps.local> It is without the scripting. FSO As New FileSystemObject -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, November 18, 2004 4:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS Hi Marty I have Windows Script Host Object Model Referenced It still fails on the line FSO As New Scripting.FileSystemObject The reference file is... C:\Windows\System32\wshom.ocx I have it at the top (Welll 3rd at least) of the available references Can you remove you reference to it and decompile to see if it fails on that line for you?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 Gustav at cactus.dk Thu Nov 18 03:42:06 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 10:42:06 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Hi Darren Not quite sure what you are doing. It will return one result only ... index.htm is chosen as any site has this page. By second thought, index.html is possible too, but I don't know (do we have a web guru present?) - perhaps the function should be expanded to check for any of these two files? /gustav >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From andy at minstersystems.co.uk Thu Nov 18 03:09:56 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 10:09:56 +0100 Subject: [AccessD] Updatable UNION? Message-ID: <20041118100955.0151024C988@smtp.nildram.co.uk> Morning all I've a continuous screen which needs to list two types of order in date sequence. These are held on separate tables. No problem, a UNION query does the job fine. However the user has to tick an order to say it's despatched, and then the screen needs to show that information, but the recordset is not updatable. Presumably this applies to all UNION queries does it? Does anyone have a way round this or do I have to go to extracting to a temp table and all that jazz? By the way it's not practical to upodate the underlying tables and requery to display the depatch info because there's a lot of data on screen and requerying takes too long. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Thu Nov 18 04:58:03 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 11:58:03 +0100 Subject: [AccessD] Updatable UNION? Message-ID: Hi Andy No, unions are read-only. If you can't go the update-behind-requery route, I guess you are left with the temp table. /gustav >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> Morning all I've a continuous screen which needs to list two types of order in date sequence. These are held on separate tables. No problem, a UNION query does the job fine. However the user has to tick an order to say it's despatched, and then the screen needs to show that information, but the recordset is not updatable. Presumably this applies to all UNION queries does it? Does anyone have a way round this or do I have to go to extracting to a temp table and all that jazz? By the way it's not practical to upodate the underlying tables and requery to display the depatch info because there's a lot of data on screen and requerying takes too long. -- Andy Lacey http://www.minstersystems.co.uk From cyx5 at cdc.gov Thu Nov 18 05:25:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:25:04 -0500 Subject: [AccessD] Make front end see new table in back end. Message-ID: 1. The form is based on a non-updateable record source. 2. The form, in the properties box, has allow additions set to no. 3. The user does not have permissions to create, edit, update, etc on table in SQL. 4. It is just a bad day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 11:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Does the book on the tread mill say way a wizard button will not let you go to a new record JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 7:56 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.Foote at uk.thalesgroup.com Thu Nov 18 05:26:29 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 18 Nov 2004 11:26:29 -0000 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C491@ntscxch1.int.rdel.co.uk> Gustav I'm not a guru but the "home page" for a website could be any of the following list: "index", "default" with the extensions htm, html, shtm, shtml, cfm, asp, php and so on I'm sure there are others! HTH Chris Foote > -----Original Message----- > From: Gustav Brock [mailto:Gustav at cactus.dk] > Sent: Thursday, November 18, 2004 9:42 AM > To: accessd at databaseadvisors.com > Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > > Hi Darren > > Not quite sure what you are doing. It will return one result only ... > index.htm is chosen as any site has this page. By second thought, > index.html is possible too, but I don't know (do we have a web guru > present?) - perhaps the function should be expanded to check > for any of > these two files? > > /gustav > From cyx5 at cdc.gov Thu Nov 18 05:49:52 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:49:52 -0500 Subject: [AccessD] New Record wizard button fails Message-ID: 1. The form is based on a non-updateable record source. 2. The form, in the properties box, has allow additions set to no. 3. The user does not have permissions to create, edit, update, etc on table in SQL. 4. It is just a bad day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, November 18, 2004 1:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] New Record wizard button fails On click it says I cant go to that record JOE HECHT LOS ANGELES CA jmhla at earthlink.net From andy at minstersystems.co.uk Thu Nov 18 04:50:12 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 11:50:12 +0100 Subject: [AccessD] Updatable UNION? Message-ID: <20041118115010.AB95725D353@smtp.nildram.co.uk> Feared that might be the case. Ah well, always worth asking the list cos if there's a way someone here will know it. Thanks for the response Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Updatable UNION? Date: 18/11/04 10:59 > > Hi Andy > > No, unions are read-only. If you can't go the update-behind-requery > route, I guess you are left with the temp table. > > /gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > > Morning all > I've a continuous screen which needs to list two types of order in > date > sequence. These are held on separate tables. No problem, a UNION query > does > the job fine. However the user has to tick an order to say it's > despatched, > and then the screen needs to show that information, but the recordset > is not > updatable. Presumably this applies to all UNION queries does it? Does > anyone > have a way round this or do I have to go to extracting to a temp table > and > all that jazz? > > By the way it's not practical to upodate the underlying tables and > requery > to display the depatch info because there's a lot of data on screen > and > requerying takes too long. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > _______________________________________________ > 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 bheid at appdevgrp.com Thu Nov 18 07:09:33 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 08:09:33 -0500 Subject: [AccessD] Control reference question. Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9EA@ADGSERVER> Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby From stuart at lexacorp.com.pg Thu Nov 18 07:29:27 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Nov 2004 23:29:27 +1000 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C491@ntscxch1.int.rdel.co.uk> Message-ID: <419D3057.18490.2206AC40@lexacorp.com.pg> On 18 Nov 2004 at 11:26, Foote, Chris wrote: > > Gustav > > I'm not a guru but the "home page" for a website could be any of the > following list: > > "index", "default" > > with the extensions htm, html, shtm, shtml, cfm, asp, php and so on > > I'm sure there are others! > And if there is no recognisable "home page", I think you will find it shows a directory listing. Basically, the solution is to issue a HTTP "Get" (or preferably a "Head" so that you don't pull the full contents back) request and check the status code of the response: RFC 2068: 6 Response After receiving and interpreting a request message, a server responds with an HTTP response message. Response = Status-Line ; Section 6.1 *( general-header ; Section 4.5 | response-header ; Section 6.2 | entity-header ) ; Section 7.1 CRLF [ message-body ] ; Section 7.2 6.1 Status-Line The first line of a Response message is the Status-Line, consisting of the protocol version followed by a numeric status code and its associated textual phrase, with each element separated by SP characters. No CR or LF is allowed except in the final CRLF sequence. Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF 6.1.1 Status Code and Reason Phrase The Status-Code element is a 3-digit integer result code of the attempt to understand and satisfy the request. These codes are fully defined in section 10. The Reason-Phrase is intended to give a short textual description of the Status-Code. The Status-Code is intended for use by automata and the Reason-Phrase is intended for the human user. The client is not required to examine or display the Reason- Phrase. The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit: o 1xx: Informational - Request received, continuing process o 2xx: Success - The action was successfully received, understood, and accepted o 3xx: Redirection - Further action must be taken in order to complete the request o 4xx: Client Error - The request contains bad syntax or cannot be fulfilled o 5xx: Server Error - The server failed to fulfill an apparently valid request -- Stuart From andy at minstersystems.co.uk Thu Nov 18 06:31:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 13:31:20 +0100 Subject: [AccessD] Control reference question. Message-ID: <20041118133118.3403B25D6DD@smtp.nildram.co.uk> Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to make > the text in 2 fields bold. The detail print event is where I was changing > it at. In a non sub report, I just use the fontbold property. Well, in the > case of the sub report, I could not set this value (or any normal value) > programmatically. Intellisense would not show me what I wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 bheid at appdevgrp.com Thu Nov 18 07:49:04 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 08:49:04 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B5B1@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9EB@ADGSERVER> Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 reuben at gfconsultants.com Thu Nov 18 08:05:45 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 18 Nov 2004 09:05:45 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB9EB@ADGSERVER> Message-ID: Reports have several properties not shown in intellisense. Visible is one. I use it all the time though. There are several I use not shown, but work perfectly. I can't give you a solution but I can ensure you that you aren't nuts. If the condition to check is on the main form I reference the subform using me.subreportname.controlname.property = whatever Does anyone have an explanation for the lack of properties showing in intellisense? Is it corrected in versions after 2000? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 8:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 From jwcolby at colbyconsulting.com Thu Nov 18 08:24:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 09:24:26 -0500 Subject: [AccessD] Control reference question. In-Reply-To: Message-ID: <002201c4cd7a$5000cb30$e8dafea9@ColbyM6805> My take was always that the ones that are not visible are "undocumented" - perhaps lingering bugs make their usage a potential maintenance issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, November 18, 2004 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Reports have several properties not shown in intellisense. Visible is one. I use it all the time though. There are several I use not shown, but work perfectly. I can't give you a solution but I can ensure you that you aren't nuts. If the condition to check is on the main form I reference the subform using me.subreportname.controlname.property = whatever Does anyone have an explanation for the lack of properties showing in intellisense? Is it corrected in versions after 2000? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 8:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Nov 18 08:29:09 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 18 Nov 2004 09:29:09 -0500 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From andy at minstersystems.co.uk Thu Nov 18 08:09:02 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 15:09:02 +0100 Subject: [AccessD] Control reference question. Message-ID: <20041118150859.4F9052567AC@smtp.nildram.co.uk> Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- 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] Control reference question. Date: 18/11/04 13:49 > > Andy, > > I did try that. It gave me an error when ran. It also would not show me > visible or any of the other items you would normally see for a textbox. > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, November 18, 2004 7:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Control reference question. > > > Bobby > Intellisense doesn't show FontBold but it's still there. Just put > Me!YourControl.FontBold=True in the subreport and it'll work fine. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: [AccessD] Control reference question. > Date: 18/11/04 13:09 > > > Hi all, > > > > I have a report with several sub reports on it. I had to modify a sub > > report yesterday so that if a certain condition was met, I needed to > > make the text in 2 fields bold. The detail print event is where I was > > changing it at. In a non sub report, I just use the fontbold > > property. Well, in > the > > case of the sub report, I could not set this value (or any normal > > value) programmatically. Intellisense would not show me what I > > wanted. I ended > up > > using reports!MainReport!Subreport!control to set the fontbold > > property. > > > > My question is, is that the proper way to handle this? Or is there > > something that I am not seeing? > > > > Thanks, > > Bobby > > > > > > > > > > > > > > -- > > _______________________________________________ > > 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 rl_stewart at highstream.net Thu Nov 18 09:09:04 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 09:09:04 -0600 Subject: [AccessD] Re: Test Voracity of URLS In-Reply-To: <200411181429.iAIEThL10841@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118090652.012abc40@pop3.highstream.net> Actually, it can be anything that you define for the site. Index is common, but so is Default. And, the extension is the same way; htm, html, aspx, asp, etc. When you set the starting page for a web site, it can be anything and have any extension. At 08:29 AM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 10:42:06 +0100 >From: "Gustav Brock" >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren From Gustav at cactus.dk Thu Nov 18 09:23:26 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 16:23:26 +0100 Subject: [AccessD] Test Voracity of URLS Message-ID: OK, I realize "my" method (which isn't mine) is far from perfect. While checking thousands of URLs which is not very common for most of us, checking one or two is realistic. So how would a neat IsURL() function look like given the knowledge we now have? /gustav >>> rl_stewart at highstream.net 18-11-2004 16:09:04 >>> Actually, it can be anything that you define for the site. Index is common, but so is Default. And, the extension is the same way; htm, html, aspx, asp, etc. When you set the starting page for a web site, it can be anything and have any extension. At 08:29 AM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 10:42:06 +0100 >From: "Gustav Brock" >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren From Mark.Mitsules at ngc.com Thu Nov 18 09:46:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 18 Nov 2004 10:46:05 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark From bheid at appdevgrp.com Thu Nov 18 09:53:24 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 10:53:24 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B60A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F1@ADGSERVER> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk From dwaters at usinternet.com Thu Nov 18 09:52:19 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 18 Nov 2004 09:52:19 -0600 Subject: [AccessD] Control reference question. In-Reply-To: <11531066.1100783288953.JavaMail.root@sniper13.securence.com> Message-ID: <001701c4cd86$9674b840$de1811d8@danwaters> Bobby, I believe that the Print event is too late in the sequence of report events. Try using the section's Format event or the report's Activate event. You could also try using Conditional Formatting! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Control reference question. Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby From bheid at appdevgrp.com Thu Nov 18 10:05:42 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 11:05:42 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B65C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F2@ADGSERVER> Hey Dan, >From Access help: FontBold Property You can use the FontBold property to specify whether a font appears in a bold style in the following situations: When displaying or printing controls on forms and reports. When using the Print method on a report. It is my understanding (which may be wrong) that the print event should be used to change the way an existing item looks (bold, background, etc.) and that format should be used when an item may or may not print (visibility, etc.) and changing an item could cause the current item to possibly be moved to the next page or something like that. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, November 18, 2004 10:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Bobby, I believe that the Print event is too late in the sequence of report events. Try using the section's Format event or the report's Activate event. You could also try using Conditional Formatting! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Control reference question. Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Nov 18 10:09:02 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 17:09:02 +0100 Subject: [AccessD] Control reference question. Message-ID: Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk From bheid at appdevgrp.com Thu Nov 18 10:30:50 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 11:30:50 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B67C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F3@ADGSERVER> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From Patricia.O'Connor at dfa.state.ny.us Thu Nov 18 11:05:07 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 18 Nov 2004 12:05:07 -0500 Subject: [AccessD] Re: ODBC against Oracle partitioned db Message-ID: What is TOAD? I was wondering whether the newest Oracle ODBC driver would solve it. We still have the 9.x one. Thanks Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Robert L. Stewart > Sent: Tuesday, November 16, 2004 02:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: ODBC against Oracle partitioned db > > As you can see, Access and the ODBC driver has trouble with a > partioned table. > > Use Toad or something like it for the type of things you > would do in running queries and viewing data. Since it is > written for Oracle, it plays with it better. > > Robert > > At 12:01 PM 11/16/2004 -0600, you wrote: > >Date: Tue, 16 Nov 2004 10:28:49 -0500 > >From: "O'Connor, Patricia \(OTDA\)" > > > >Subject: [AccessD] ODBC against Oracle partitioned db > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >Hi all > > > >When I use the Oracle ODBC driver against an ORACLE un-partitioned > >table from Access (either passthru or gui), I have not problem. Data > >comes back can scroll through 1-30+K records no problem. > > > >When I use same driver against an Oracle partitioned table > from access, > >I get temporary freeze ups when scrolling through records even > >scrolling from column 1 to say col 10 on screen. It doesn't > matter how > >many records in set - scroll down 3-6 records - stop. Sometimes the > >stall can be 2-5 minutes. > > > >Doesn't matter if it is the only thing running on computer. I do not > >have this problem with an unpartioned set. I waste a good amount of > >time waiting for access to let me back in. > > > >Has anyone run into this and is there a workaround or > setting I need to > >change in the driver configuration. My machine is Win2k, Access2k, > >Oracle10 > > > >Thanks in advance > >Patti > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From donald.a.Mcgillivray at mail.sprint.com Thu Nov 18 11:11:37 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 18 Nov 2004 11:11:37 -0600 Subject: [AccessD] Need a summary query to return more than one record for a member of a group Message-ID: <988E2AC88CCB54459286C4077DB662F502857E74@PDAWB03C.ad.sprint.com> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services From kaupca at chevrontexaco.com Thu Nov 18 11:23:12 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 18 Nov 2004 11:23:12 -0600 Subject: [AccessD] Query of query results problem Message-ID: <1375769556091B4DAABC159F944CA1BB07A2D9@bocnte2k4.hou150.chevrontexaco.net> I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From tinanfields at torchlake.com Thu Nov 18 11:23:36 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 12:23:36 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? Message-ID: <419CDA98.8050300@torchlake.com> Hello all you gurus - Is WithEvents not an acceptable keyword in AccessXP (file format Access 2000)? I am playing with code from John Colby's demos, and in my module, which is a straight copy of his, the line "Private WithEvents mtxt As TextBox" is red, which usually means Visual Basic doesn't recognize the keywords I've used. Is there a version problem possibly? My VBA says it is 6.3.8863. Any clues here would be very much appreciated. It's especially confusing to me, since in John's code the keywords remain a nice blue. What am I missing? Tina From Gustav at cactus.dk Thu Nov 18 11:37:27 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 18:37:27 +0100 Subject: Svar: RE: [AccessD] Control reference question. Message-ID: Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From cyx5 at cdc.gov Thu Nov 18 11:43:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 12:43:29 -0500 Subject: [AccessD] Query of query results problem Message-ID: Isn't there something about a calculation inheriting the format of the, what I think of, the simplest format? What if you set the formatting in the second query in the query itself to like a double and specify the number of decimals? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester A Sent: Thursday, November 18, 2004 12:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Query of query results problem I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 18 11:48:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 12:48:05 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? In-Reply-To: <419CDA98.8050300@torchlake.com> Message-ID: <003c01c4cd96$c24421d0$e8dafea9@ColbyM6805> You copied and pasted from my demo and it is not compiling? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Thursday, November 18, 2004 12:24 PM To: DatabaseAdvisors-Access Subject: [AccessD] WithEvents - Why doesn't my Access like it? Hello all you gurus - Is WithEvents not an acceptable keyword in AccessXP (file format Access 2000)? I am playing with code from John Colby's demos, and in my module, which is a straight copy of his, the line "Private WithEvents mtxt As TextBox" is red, which usually means Visual Basic doesn't recognize the keywords I've used. Is there a version problem possibly? My VBA says it is 6.3.8863. Any clues here would be very much appreciated. It's especially confusing to me, since in John's code the keywords remain a nice blue. What am I missing? Tina -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Thu Nov 18 11:57:01 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 12:57:01 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? References: <003c01c4cd96$c24421d0$e8dafea9@ColbyM6805> Message-ID: <419CE26D.9090909@torchlake.com> Okay, I just figured it out. What I failed to do was make sure I was creating a class module! Arrgh! I'm banging my head against the wall. Thanks for responding. It's been a long few days. Tina John W. Colby wrote: >You copied and pasted from my demo and it is not compiling? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: Thursday, November 18, 2004 12:24 PM >To: DatabaseAdvisors-Access >Subject: [AccessD] WithEvents - Why doesn't my Access like it? > > >Hello all you gurus - >Is WithEvents not an acceptable keyword in AccessXP (file format Access >2000)? I am playing with code from John Colby's demos, and in my >module, which is a straight copy of his, the line >"Private WithEvents mtxt As TextBox" is red, which usually means Visual >Basic doesn't recognize the keywords I've used. Is there a version >problem possibly? My VBA says it is 6.3.8863. Any clues here would be >very much appreciated. It's especially confusing to me, since in John's >code the keywords remain a nice blue. What am I missing? >Tina > > > From accessd at shaw.ca Thu Nov 18 12:03:34 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:03:34 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: Message-ID: General comment Any file extension and file name can be setup as default initial web site code. Html (variations htm, htlms...), and is just one extension type but 'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to name a few, are just as valid and standard. As for names, anything goes. The most common are of course 'index', but 'homepage' is a standard when using MS FP. It is all set up on your IIS or Apache, in the properties per hosted web site. Most sites are fairly standard but I have seen some odd variations over the years. In a nutshell, everything goes. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 1:42 AM To: accessd at databaseadvisors.com Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren Not quite sure what you are doing. It will return one result only ... index.htm is chosen as any site has this page. By second thought, index.html is possible too, but I don't know (do we have a web guru present?) - perhaps the function should be expanded to check for any of these two files? /gustav >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Nov 18 12:06:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 19:06:50 +0100 Subject: [AccessD] Need a summary query to return more than one record for amember of a group Message-ID: Hi Don You need to, for each record, look up the date/time of the next entry and calculate the minutes: lngMinutes: DateDiff("n", InsertTime, (Select Top 1 T.InsertTime From tblTable As T Where T.InsertTime > tblTable.InsertTime Order By T.InsertTime Asc) The sum the minutes by grouping in another query where you use the above as source. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 18-11-2004 18:11:37 >>> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services From jwcolby at colbyconsulting.com Thu Nov 18 12:12:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:12:49 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? In-Reply-To: <419CE26D.9090909@torchlake.com> Message-ID: <003e01c4cd9a$365ed9e0$e8dafea9@ColbyM6805> LOL> Yea, it should tell you that syntax is not valid outside of a class or something similar. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Thursday, November 18, 2004 12:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WithEvents - Why doesn't my Access like it? Okay, I just figured it out. What I failed to do was make sure I was creating a class module! Arrgh! I'm banging my head against the wall. Thanks for responding. It's been a long few days. Tina John W. Colby wrote: >You copied and pasted from my demo and it is not compiling? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: Thursday, November 18, 2004 12:24 PM >To: DatabaseAdvisors-Access >Subject: [AccessD] WithEvents - Why doesn't my Access like it? > > >Hello all you gurus - >Is WithEvents not an acceptable keyword in AccessXP (file format Access >2000)? I am playing with code from John Colby's demos, and in my >module, which is a straight copy of his, the line >"Private WithEvents mtxt As TextBox" is red, which usually means Visual >Basic doesn't recognize the keywords I've used. Is there a version >problem possibly? My VBA says it is 6.3.8863. Any clues here would be >very much appreciated. It's especially confusing to me, since in John's >code the keywords remain a nice blue. What am I missing? >Tina > > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Nov 18 12:13:43 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:13:43 -0800 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB9F1@ADGSERVER> Message-ID: What is standard is that there is none. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Nov 18 12:26:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 13:26:38 -0500 Subject: Svar: RE: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B702@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F7@ADGSERVER> Gustav, Yes, that works also. Why would I need to put .Report on the end? It already knows it is in the Reports collection? I have never seen anything like that when referencing something on a form either? Is there a .Form for the forms? Also, what is Svar in the subject? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 12:37 PM To: accessd at databaseadvisors.com Subject: Svar: RE: [AccessD] Control reference question. Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From lists at theopg.com Thu Nov 18 12:28:41 2004 From: lists at theopg.com (MarkH) Date: Thu, 18 Nov 2004 18:28:41 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> Hello All (I sent his yesterday but it didn';t seem to get through...) Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark From rl_stewart at highstream.net Thu Nov 18 12:47:09 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 12:47:09 -0600 Subject: [AccessD] Re: Control reference question. In-Reply-To: <200411181801.iAII1CL28773@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118124620.047d7308@pop3.highstream.net> If you are working with a subReport, the Gustav is correct. Reports and forms are the same in referencing controls in a sub. Robert At 12:01 PM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 11:30:50 -0500 >From: "Bobby Heid" >Subject: RE: [AccessD] Control reference question. >To: "'Access Developers discussion and problem solving'" > >Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F3 at ADGSERVER> >Content-Type: text/plain; charset="US-ASCII" > >I dunno, it works as I have it. I have never used Report on the end like >you have it. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 11:09 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Control reference question. > > >Hi Bobby > >Shouldn't it read: > > With Reports!Closeout!Closeout_GL_sub.Report > If !txtSetBold <> 0 Then > !txtGLEstPayroll.FONTBOLD = True > !txtGLFinalPayroll.FONTBOLD = True > Else > !txtGLEstPayroll.FONTBOLD = False > !txtGLFinalPayroll.FONTBOLD = False > End If > End With > >/gustav From rl_stewart at highstream.net Thu Nov 18 12:48:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 12:48:44 -0600 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: <200411181801.iAII1CL28773@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118124816.013f0c68@pop3.highstream.net> Take a look at http://www.quest.com/toad/ Robert At 12:01 PM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 12:05:07 -0500 >From: "O'Connor, Patricia \(OTDA\)" > >Subject: RE: [AccessD] Re: ODBC against Oracle partitioned db >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > > >What is TOAD? > >I was wondering whether the newest Oracle ODBC driver would solve it. We >still have the 9.x one. > >Thanks >Patti From tinanfields at torchlake.com Thu Nov 18 12:49:57 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 13:49:57 -0500 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: Message-ID: <419CEED5.3000105@torchlake.com> Okay, I can't resist any longer - didn't anybody else laugh about this subject line? How hungry does a URL have to be before it becomes voracious and we have to test its voracity? LOL Tina Jim Lawrence (AccessD) wrote: >General comment > >Any file extension and file name can be setup as default initial web site >code. Html (variations htm, htlms...), and is just one extension type but >'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to name a few, are >just as valid and standard. As for names, anything goes. The most common are >of course 'index', but 'homepage' is a standard when using MS FP. It is all >set up on your IIS or Apache, in the properties per hosted web site. Most >sites are fairly standard but I have seen some odd variations over the >years. In a nutshell, everything goes. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 1:42 AM >To: accessd at databaseadvisors.com >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > > >>>>d.dick at uws.edu.au 18-11-2004 01:58:27 >>> >>>> >>>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >Brock >Sent: Wednesday, 17 November 2004 8:36 PM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to >use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's >of 'em) Occasionally someone has to test to see if the links are broken >or >not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of >URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From markamatte at hotmail.com Thu Nov 18 12:54:55 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 18 Nov 2004 18:54:55 +0000 Subject: [AccessD] Corrupt Data File In-Reply-To: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Message-ID: I had the same/similar problem a few months ago...If I tried to import,export, or compact...I would get that error. It seemed to revolve around 1 record( with a memo field)...when viewing the memo 'error' appeared. I removed this record...and was able to compact. Good Luck, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Corrupt Data File >Date: Thu, 18 Nov 2004 12:50:16 +1000 > >Are you able to import the backendDb tables into a new empty db? > >Regards >Borge > >----- Original Message ----- >From: "MACE, Terry" >To: "'Access Developers discussion and problem solving'" > >Sent: Thursday, November 18, 2004 11:36 AM >Subject: [AccessD] Corrupt Data File > > > > > > Help!! > > > > I have a store management database application in Ac97 and last night >the > > back end data file was corrupted. I have run the Ac97 repair tool and >also > > Jetcomp.exe on the file and they both say the file is OK. > > > > The problem is when I attempt to open it I get the following message: > > > > "'Index1' isn't an index in this table. Look in the indexes collection >of > > the TableDef object to determine the valid index names." OK /HELP > > > > Clicking on the OK button just terminates the opening process. Due to >an > > undiscovered (until now!) quirk in our backup system, this file has >never > > been backed up. The file size is 7.2Mb and contains about 7000 records. >A > > zipped copy is about 1.6Mb. > > > > Any advice on how or who could fix it would be most appreciated. > > > > Terry Mace > > BAE Systems > > Melbourne, Australia > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >--- >Outgoing mail is certified Virus Free by AVG Anti Virus System. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Nov 18 12:56:25 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 18 Nov 2004 12:56:25 -0600 Subject: [AccessD] Query of query results problem Message-ID: <1375769556091B4DAABC159F944CA1BB07A2DA@bocnte2k4.hou150.chevrontexaco.net> I had to use the csng function on each field in the second query. I was just wondering if this is normal behavior for access or if something else is happening. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 11:43 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query of query results problem Isn't there something about a calculation inheriting the format of the, what I think of, the simplest format? What if you set the formatting in the second query in the query itself to like a double and specify the number of decimals? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester A Sent: Thursday, November 18, 2004 12:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Query of query results problem I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 18 12:56:39 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:56:39 -0800 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: Message-ID: Hi Patti: Toad is probably the best Oracle manager/designer/developer tool ever built. It has now expanded it's extensive set of features to MS SQL and even MySQL. Check it out: http://www.toadsoft.com/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, November 18, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: ODBC against Oracle partitioned db What is TOAD? I was wondering whether the newest Oracle ODBC driver would solve it. We still have the 9.x one. Thanks Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Robert L. Stewart > Sent: Tuesday, November 16, 2004 02:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: ODBC against Oracle partitioned db > > As you can see, Access and the ODBC driver has trouble with a > partioned table. > > Use Toad or something like it for the type of things you > would do in running queries and viewing data. Since it is > written for Oracle, it plays with it better. > > Robert > > At 12:01 PM 11/16/2004 -0600, you wrote: > >Date: Tue, 16 Nov 2004 10:28:49 -0500 > >From: "O'Connor, Patricia \(OTDA\)" > > > >Subject: [AccessD] ODBC against Oracle partitioned db > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >Hi all > > > >When I use the Oracle ODBC driver against an ORACLE un-partitioned > >table from Access (either passthru or gui), I have not problem. Data > >comes back can scroll through 1-30+K records no problem. > > > >When I use same driver against an Oracle partitioned table > from access, > >I get temporary freeze ups when scrolling through records even > >scrolling from column 1 to say col 10 on screen. It doesn't > matter how > >many records in set - scroll down 3-6 records - stop. Sometimes the > >stall can be 2-5 minutes. > > > >Doesn't matter if it is the only thing running on computer. I do not > >have this problem with an unpartioned set. I waste a good amount of > >time waiting for access to let me back in. > > > >Has anyone run into this and is there a workaround or > setting I need to > >change in the driver configuration. My machine is Win2k, Access2k, > >Oracle10 > > > >Thanks in advance > >Patti > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Thu Nov 18 13:11:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 11:11:14 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: <001d01c4cda2$62c28dd0$6501a8c0@delllaptop> The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From GregSmith at starband.net Thu Nov 18 14:44:35 2004 From: GregSmith at starband.net (Greg Smith) Date: Thu, 18 Nov 2004 14:44:35 -0600 (CST) Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> References: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> Message-ID: <2249.65.118.249.206.1100810675.squirrel@cetus.email.starband.net> Mark: Do any of the groups/users in the two different MDW's have the same PID's? Or were both mdw files created independently? If the latter is true, you might be hosed. I'm ASSuming (dangerous word) that both apps and data sets are using full MS Access security. The next question (or continuing) then, if they both are fully independent, how do you get data from one to the other? You have to somehow combine the mdw's (create new users/groups in one mdw from the other mdw using the PIDs from the other mdw) and then one MDW file would be used for both apps. "Bit of a pain..." is an understatement. I don't know your full setup, but another option would be (warning: this is a cobble...) to create a third UNSECURED db for the data, export data to it from the one database, then import from it into the other database. That way all the exporting and importing is done from the secured db's and they, technically, don't 'see' each other or their security. However, your exported/imported data, while in the unsecured database, is just that...unsecured. You didn't say whether this was a one time deal or an ongoing process, so that may also figure into what you need to do as well. Well, that's MY two cents worth. Good luck! Greg Smith gregsmith at starband.net > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into the > other but am having problems as they are secured on different mdw's. I > could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? > > Thanks in advance > > Mark > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From GregSmith at starband.net Thu Nov 18 15:01:05 2004 From: GregSmith at starband.net (Greg Smith) Date: Thu, 18 Nov 2004 15:01:05 -0600 (CST) Subject: [AccessD] Corrupt Data File In-Reply-To: References: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Message-ID: <2284.65.118.249.206.1100811665.squirrel@cetus.email.starband.net> Terry: Look at http://support.microsoft.com/default.aspx?scid=kb;en-us;158933 for some help...although it's not help really...it just tells you how hosed you really are. I had a client who got this error message and there was absolutely nothing we could do with it. The backend data was corrupted beyond repair. We couldn't even import the data out of it. She had to go and use the last backup, which I conveniently had a copy of, but it was over two weeks old. Her tape drive had not been working right (and she knew it...but put off getting it fixed...) so her backup was missing over two weeks of data they had to reenter. I hope this is NOT the case for you, but, judging from the Microsoft article, I don't hold out much hope. Good luck! Greg Smith gregsmith at starband.net >> > Help!! >> > >> > I have a store management database application in Ac97 and last >> night >>the >> > back end data file was corrupted. I have run the Ac97 repair tool >> and >>also >> > Jetcomp.exe on the file and they both say the file is OK. >> > >> > The problem is when I attempt to open it I get the following >> message: >> > >> > "'Index1' isn't an index in this table. Look in the indexes >> collection >>of >> > the TableDef object to determine the valid index names." OK /HELP >> > >> > Clicking on the OK button just terminates the opening process. Due >> to >>an >> > undiscovered (until now!) quirk in our backup system, this file has >>never >> > been backed up. The file size is 7.2Mb and contains about 7000 >> records. >>A >> > zipped copy is about 1.6Mb. >> > >> > Any advice on how or who could fix it would be most appreciated. >> > >> > Terry Mace >> > BAE Systems >> > Melbourne, Australia From lists at theopg.com Thu Nov 18 15:32:43 2004 From: lists at theopg.com (MarkH) Date: Thu, 18 Nov 2004 21:32:43 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <2249.65.118.249.206.1100810675.squirrel@cetus.email.starband.net> Message-ID: <001701c4cdb6$24b39f70$0e0b6bd5@netboxxp> Greg 1) Both mdw files were created independantly and both backends are fully secured (I do have full access on each) 2) I was hoping to avoid merging the workgroups, but if I have to then luckilly one has less than ten users 3) A temporary unsecured database is out of the question unfortunately due to the nature of the data ... I have read, since posting my original message, that the desired result "could" possibly be achieved by creating an access application variable within one of the front-ends that uses a connection string to the other backend which includes workgroup and login details. I would like to avoid this as it seems clumsy, haven't tried it yet though... Looks like merging the two mdw's will be the best bet... Never mind :O) Thanks very much for the suggestions Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: 18 November 2004 20:45 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup Mark: Do any of the groups/users in the two different MDW's have the same PID's? Or were both mdw files created independently? If the latter is true, you might be hosed. I'm ASSuming (dangerous word) that both apps and data sets are using full MS Access security. The next question (or continuing) then, if they both are fully independent, how do you get data from one to the other? You have to somehow combine the mdw's (create new users/groups in one mdw from the other mdw using the PIDs from the other mdw) and then one MDW file would be used for both apps. "Bit of a pain..." is an understatement. I don't know your full setup, but another option would be (warning: this is a cobble...) to create a third UNSECURED db for the data, export data to it from the one database, then import from it into the other database. That way all the exporting and importing is done from the secured db's and they, technically, don't 'see' each other or their security. However, your exported/imported data, while in the unsecured database, is just that...unsecured. You didn't say whether this was a one time deal or an ongoing process, so that may also figure into what you need to do as well. Well, that's MY two cents worth. Good luck! Greg Smith gregsmith at starband.net > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? > > Thanks in advance > > Mark > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From markamatte at hotmail.com Thu Nov 18 15:44:11 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 18 Nov 2004 21:44:11 +0000 Subject: [AccessD] IMESentenceMode gremlin In-Reply-To: Message-ID: Paul, I would open the vba window and compile all modules...something might be missing under 'TOOLS_REFERENCES'. Hope it helps, Mark A. Matte >From: Paul Rodgers >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] IMESentenceMode gremlin >Date: Wed, 17 Nov 2004 09:29:12 -0000 > >A slight change to a cmd button on a form has Access offering a fault, 'You >entered an expression that has an invalid reference to the property >IMESentenceMode'. > >The debug highlight is of an unrelated, unchanged piece of code. > >Anyone been here, please, and answered this seemingly strange error. Cheers >paul > >-- >_______________________________________________ >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 Nov 18 16:05:28 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:05:28 +1100 Subject: [AccessD] A2003:Test Voracity of URLS - Repost In-Reply-To: Message-ID: <200411182205.iAIM5edQ014590@cooper.uws.edu.au> Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ 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 Nov 18 16:10:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:10:39 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419CEED5.3000105@torchlake.com> Message-ID: <200411182210.iAIMApdQ018173@cooper.uws.edu.au> Hi Tina Well spotted - slip of the 'vowels' ((That's a slip of the consonants:-)) Should be an e not an o By the way I ended up using Link Sleuth - it's free and it's fast Thanks to all who responded DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Friday, 19 November 2004 5:50 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Okay, I can't resist any longer - didn't anybody else laugh about this subject line? How hungry does a URL have to be before it becomes voracious and we have to test its voracity? LOL Tina Jim Lawrence (AccessD) wrote: >General comment > >Any file extension and file name can be setup as default initial web >site code. Html (variations htm, htlms...), and is just one extension >type but 'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to >name a few, are just as valid and standard. As for names, anything >goes. The most common are of course 'index', but 'homepage' is a >standard when using MS FP. It is all set up on your IIS or Apache, in >the properties per hosted web site. Most sites are fairly standard but >I have seen some odd variations over the years. In a nutshell, everything goes. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 1:42 AM >To: accessd at databaseadvisors.com >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > > >>>>d.dick at uws.edu.au 18-11-2004 01:58:27 >>> >>>> >>>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form and >put debug.print IsURL at the end of Public Function IsURL I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website How do it know if there >will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, 17 November 2004 8:36 PM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 Nov 18 16:41:27 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:41:27 +1100 Subject: [AccessD] Updatable UNION? In-Reply-To: <20041118115010.AB95725D353@smtp.nildram.co.uk> Message-ID: <200411182241.iAIMfedQ013637@cooper.uws.edu.au> Hi Andy How are things?? Say Hello to your lovely for me In cases like this in the on_click of a check box I just look at its current value. Then run a query based on the opposite value then refresh or Requery the screen Eg If Me.chkCheckBox = -1 then docmd.openquery "upd_qryThatChangesTheValueForThisRecordToZero ElseIf Me.chkCheckBox = 0 then docmd.openquery "upd_qryThatChangesTheValueForThisRecordToMinus1 End if Me.requery And if needed set a bookmark or global so you can return to the Relavant record after a requery Hope this helps And we'll see you.........:-))) DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, 18 November 2004 9:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updatable UNION? Feared that might be the case. Ah well, always worth asking the list cos if there's a way someone here will know it. Thanks for the response Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Updatable UNION? Date: 18/11/04 10:59 > > Hi Andy > > No, unions are read-only. If you can't go the update-behind-requery > route, I guess you are left with the temp table. > > /gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 > >>> > > Morning all > I've a continuous screen which needs to list two types of order in > date sequence. These are held on separate tables. No problem, a UNION > query does the job fine. However the user has to tick an order to say > it's despatched, and then the screen needs to show that information, > but the recordset is not updatable. Presumably this applies to all > UNION queries does it? Does anyone have a way round this or do I have > to go to extracting to a temp table and all that jazz? > > By the way it's not practical to upodate the underlying tables and > requery to display the depatch info because there's a lot of data on > screen and requerying takes too long. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > _______________________________________________ > 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 martyconnelly at shaw.ca Thu Nov 18 19:50:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 17:50:59 -0800 Subject: [AccessD] For Trainee BOFH's References: <200411182210.iAIMApdQ018173@cooper.uws.edu.au> Message-ID: <419D5183.2070209@shaw.ca> Those of you working on your BOFH certification might find this piece of code useful Or if you really want to get all those users out of your database so you can work on it. Or if you really want to renew a dhcp lease. You can run from vbs or Access VBA Here's a way to reboot a list of systems with a single keystroke. Replace the contents of the code between "Else" and "End if" statements in the script below that (renews DHCP leases on all computers) with the following: Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") objTextFile.WriteLine(strComputer & " is rebooting.") For Each objOperatingSystem in colOperatingSystems ObjOperatingSystem.Reboot() Next 'computer.txt' is a file that contains a list of all network machine names ' well aside from your own. RebootFile = "computers.txt" LogFile = "results.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(RebootFile, 1, True) Set objTextFile = fso.OpenTextFile(LogFile, 2, True) On Error resume next Do While f.AtEndOfLine <> True strComputer = f.ReadLine Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") If Err.Number <> 0 Then objTextFile.WriteLine(intCount & ". " & strComputer & " is not responding.") Err.Clear Else Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") objNetworkSettings.RenewDHCPLeaseAll() objTextFile.WriteLine(strComputer & " has been renewed.") End If Loop -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Thu Nov 18 20:04:24 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 18 Nov 2004 19:04:24 -0700 Subject: [AccessD] ActiveX control for capturing a signature? Message-ID: <48860-22004115192424187@christopherhawkins.com> A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From jmhla at earthlink.net Thu Nov 18 20:04:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 18:04:54 -0800 Subject: [AccessD] For Trainee BOFH's In-Reply-To: <419D5183.2070209@shaw.ca> Message-ID: <001501c4cddc$29bd5670$6501a8c0@delllaptop> I will bite. BOFH? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, November 18, 2004 5:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] For Trainee BOFH's Those of you working on your BOFH certification might find this piece of code useful Or if you really want to get all those users out of your database so you can work on it. Or if you really want to renew a dhcp lease. You can run from vbs or Access VBA Here's a way to reboot a list of systems with a single keystroke. Replace the contents of the code between "Else" and "End if" statements in the script below that (renews DHCP leases on all computers) with the following: Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") objTextFile.WriteLine(strComputer & " is rebooting.") For Each objOperatingSystem in colOperatingSystems ObjOperatingSystem.Reboot() Next 'computer.txt' is a file that contains a list of all network machine names ' well aside from your own. RebootFile = "computers.txt" LogFile = "results.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(RebootFile, 1, True) Set objTextFile = fso.OpenTextFile(LogFile, 2, True) On Error resume next Do While f.AtEndOfLine <> True strComputer = f.ReadLine Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") If Err.Number <> 0 Then objTextFile.WriteLine(intCount & ". " & strComputer & " is not responding.") Err.Clear Else Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") objNetworkSettings.RenewDHCPLeaseAll() objTextFile.WriteLine(strComputer & " has been renewed.") End If Loop -- 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 jmhla at earthlink.net Thu Nov 18 20:05:37 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 18:05:37 -0800 Subject: [AccessD] ActiveX control for capturing a signature? In-Reply-To: <48860-22004115192424187@christopherhawkins.com> Message-ID: <001601c4cddc$46a73940$6501a8c0@delllaptop> Look at point of sales sites maybe? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, November 18, 2004 6:04 PM To: accessd at databaseadvisors.com Subject: [AccessD] ActiveX control for capturing a signature? A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Nov 18 20:26:20 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 18 Nov 2004 21:26:20 -0500 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> References: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <419D137C.19277.573D8F@localhost> On 18 Nov 2004 at 18:28, MarkH wrote: > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? Create a new DAO workspace Private mwks As DAO.Workspace 'Workspace for the DB's to be opened in Private mdbBE As DAO.Database 'BE DB Reference 'Open the Workspace Set mwks = CreateWorkspace("AnyName", "UserName", "PassWord") 'Set Reference to BE, opened Exclusively Set mdbBE = mwks.OpenDatabase(Me.BEPath, True, False, Me.BEPassword) Now the mdbBE dao database object can be refered to just like you would with any other DAO database object. This is the approach that we took with the Alpha version of the BackEnd Upgrader that deals with back ends that were secured with Jet Security. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From martyconnelly at shaw.ca Thu Nov 18 20:37:20 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 18:37:20 -0800 Subject: [AccessD] For Trainee BOFH's References: <001501c4cddc$29bd5670$6501a8c0@delllaptop> Message-ID: <419D5C60.2010609@shaw.ca> How to get an upgrade, BOFH-style http://www.theregister.co.uk/2004/01/17/how_to_get_an_upgrade/ There is a couple of years worth of articles here http://www.theregister.co.uk/odds/bofh/ Oh yes BOFH Bastard Operator From Hell Joe Hecht wrote: >I will bite. BOFH? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, November 18, 2004 5:51 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] For Trainee BOFH's > > Those of you working on your BOFH certification might find this piece >of code useful >Or if you really want to get all those users out of your database so you >can work on it. >Or if you really want to renew a dhcp lease. > >You can run from vbs or Access VBA > >Here's a way to reboot a list of systems with a single keystroke. >Replace the contents of the code between "Else" and "End if" statements >in the script below that (renews DHCP leases on all computers) with >the following: > > Set colOperatingSystems = objWMIService.ExecQuery("Select * from >Win32_OperatingSystem") > objTextFile.WriteLine(strComputer & " is rebooting.") > For Each objOperatingSystem in colOperatingSystems > ObjOperatingSystem.Reboot() >Next > > >'computer.txt' is a file that contains a list of all network machine names >' well aside from your own. > >RebootFile = "computers.txt" >LogFile = "results.txt" > >Set fso = CreateObject("Scripting.FileSystemObject") >Set f = fso.OpenTextFile(RebootFile, 1, True) >Set objTextFile = fso.OpenTextFile(LogFile, 2, True) > >On Error resume next >Do While f.AtEndOfLine <> True > strComputer = f.ReadLine >Set objWMIService = GetObject("winmgmts:" & >"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") >If Err.Number <> 0 Then > objTextFile.WriteLine(intCount & ". " & strComputer & " is not >responding.") > Err.Clear >Else >Set objNetworkSettings = >objWMIService.Get("Win32_NetworkAdapterConfiguration") > objNetworkSettings.RenewDHCPLeaseAll() > objTextFile.WriteLine(strComputer & " has been renewed.") >End If >Loop > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Nov 18 20:40:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 18:40:55 -0800 Subject: [AccessD] For Trainee BOFH's References: <001501c4cddc$29bd5670$6501a8c0@delllaptop> Message-ID: <419D5D37.6040607@shaw.ca> Or try here for usenet definition http://www.comedia.com/hot/jargon-4.2.3/html/entry/BOFH.html Joe Hecht wrote: >I will bite. BOFH? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, November 18, 2004 5:51 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] For Trainee BOFH's > > Those of you working on your BOFH certification might find this piece >of code useful >Or if you really want to get all those users out of your database so you >can work on it. >Or if you really want to renew a dhcp lease. > >You can run from vbs or Access VBA > >Here's a way to reboot a list of systems with a single keystroke. >Replace the contents of the code between "Else" and "End if" statements >in the script below that (renews DHCP leases on all computers) with >the following: > > Set colOperatingSystems = objWMIService.ExecQuery("Select * from >Win32_OperatingSystem") > objTextFile.WriteLine(strComputer & " is rebooting.") > For Each objOperatingSystem in colOperatingSystems > ObjOperatingSystem.Reboot() >Next > > >'computer.txt' is a file that contains a list of all network machine names >' well aside from your own. > >RebootFile = "computers.txt" >LogFile = "results.txt" > >Set fso = CreateObject("Scripting.FileSystemObject") >Set f = fso.OpenTextFile(RebootFile, 1, True) >Set objTextFile = fso.OpenTextFile(LogFile, 2, True) > >On Error resume next >Do While f.AtEndOfLine <> True > strComputer = f.ReadLine >Set objWMIService = GetObject("winmgmts:" & >"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") >If Err.Number <> 0 Then > objTextFile.WriteLine(intCount & ". " & strComputer & " is not >responding.") > Err.Clear >Else >Set objNetworkSettings = >objWMIService.Get("Win32_NetworkAdapterConfiguration") > objNetworkSettings.RenewDHCPLeaseAll() > objTextFile.WriteLine(strComputer & " has been renewed.") >End If >Loop > > > -- Marty Connelly Victoria, B.C. Canada From lists at theopg.com Fri Nov 19 03:17:00 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 09:17:00 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <419D137C.19277.573D8F@localhost> Message-ID: <000001c4ce18$88012590$0e0b6bd5@netboxxp> Hello Bryan... Thanks for the suggestion, not quite sure on a couple of things though... I assume that, from "me.BEPassword" the user enters their username and password on screen? I'm not sure how this gets passed the mdw security? The front-end that is requesting the data belongs to a different mdw so even though I passed the correct username and password I still get refused access because the connection request is being made whilst joined to a different mdw. I have tried specifying the mdw in the connection string but either its not possible or I'm getting the format wrong :@( Is it possible to specify a different mdw? Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 19 November 2004 02:26 To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup On 18 Nov 2004 at 18:28, MarkH wrote: > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? Create a new DAO workspace Private mwks As DAO.Workspace 'Workspace for the DB's to be opened in Private mdbBE As DAO.Database 'BE DB Reference 'Open the Workspace Set mwks = CreateWorkspace("AnyName", "UserName", "PassWord") 'Set Reference to BE, opened Exclusively Set mdbBE = mwks.OpenDatabase(Me.BEPath, True, False, Me.BEPassword) Now the mdbBE dao database object can be refered to just like you would with any other DAO database object. This is the approach that we took with the Alpha version of the BackEnd Upgrader that deals with back ends that were secured with Jet Security. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ 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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From lists at theopg.com Fri Nov 19 03:55:50 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 09:55:50 -0000 Subject: [AccessD] Accessing data in secured mdb from another ... Clumsy fix - comments please In-Reply-To: <000001c4ce18$88012590$0e0b6bd5@netboxxp> Message-ID: <000101c4ce1d$f4c3c2a0$0e0b6bd5@netboxxp> Hello again... I can establish (fairly easilly) a connection using the following method: Dim app As Access.Application Dim db As DAO.Database Set app = New Access.Application app.SetDefaultWorkgroupFile "pathToMDW" app.OpenCurrentDatabase "pathToSecuredMDB" 'login prompt displayed '... Set rs etc... This works, but I'm concerned that working with a database this way may invite problems (never had to do it like this before). The clients network is one of the slowest I ever worked with and I would like to avoid potentially locking up a machine while the app etc. is being accessed. Anyone out there have experience of this method and what to look out for? Many thanks Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From lists at theopg.com Fri Nov 19 04:28:20 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 10:28:20 -0000 Subject: [AccessD] Accessing data in secured mdb from another ... Used ADODB In-Reply-To: <000101c4ce1d$f4c3c2a0$0e0b6bd5@netboxxp> Message-ID: <000201c4ce22$7ebf6960$0e0b6bd5@netboxxp> Doh... Completely forgot about ADO as I havent used it for quite a while... Nice and easy and no need for a separate application object, just specified the mdw in the connection properties and prompted user to enter login details :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From carbonnb at sympatico.ca Fri Nov 19 04:30:51 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 19 Nov 2004 05:30:51 -0500 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <000001c4ce18$88012590$0e0b6bd5@netboxxp> References: <419D137C.19277.573D8F@localhost> Message-ID: <419D850B.22905.20D64E@localhost> On 19 Nov 2004 at 9:17, MarkH wrote: > Hello Bryan... Thanks for the suggestion, not quite sure on a couple > of things though... > > I assume that, from "me.BEPassword" the user enters their username and > password on screen? It could be that they do do that. We had it hardcoded. but that is a password for the BE if it only has a password on it, not Jet security, just a password. > I'm not sure how this gets passed the mdw security? The front-end that > is requesting the data belongs to a different mdw so even though I > passed the correct username and password I still get refused access > because the connection request is being made whilst joined to a > different mdw. I have tried specifying the mdw in the connection > string but either its not possible or I'm getting the format wrong :@( > > Is it possible to specify a different mdw? Aw cr*p. Missed that part completely :( I'm not sure. -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. From lists at theopg.com Fri Nov 19 04:47:54 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 10:47:54 -0000 Subject: [AccessD] Accessing data in secured mdb from anothersecured mdbon a different workgroup In-Reply-To: <419D850B.22905.20D64E@localhost> Message-ID: <000301c4ce25$3a94ab30$0e0b6bd5@netboxxp> No worries matey... Used ADO and it works just fine :@) Thanks anyway Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 19 November 2004 10:31 To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Accessing data in secured mdb from anothersecured mdbon a different workgroup On 19 Nov 2004 at 9:17, MarkH wrote: > Hello Bryan... Thanks for the suggestion, not quite sure on a couple > of things though... > > I assume that, from "me.BEPassword" the user enters their username and > password on screen? It could be that they do do that. We had it hardcoded. but that is a password for the BE if it only has a password on it, not Jet security, just a password. > I'm not sure how this gets passed the mdw security? The front-end that > is requesting the data belongs to a different mdw so even though I > passed the correct username and password I still get refused access > because the connection request is being made whilst joined to a > different mdw. I have tried specifying the mdw in the connection > string but either its not possible or I'm getting the format wrong :@( > > Is it possible to specify a different mdw? Aw cr*p. Missed that part completely :( I'm not sure. -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. -- _______________________________________________ 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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From Mark.Mitsules at ngc.com Fri Nov 19 07:47:47 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 19 Nov 2004 08:47:47 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 07:49:20 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 19 Nov 2004 13:49:20 +0000 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". Just a thought... Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Updatable UNION? >Date: Thu, 18 Nov 2004 11:58:03 +0100 > >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Fri Nov 19 07:57:55 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 19 Nov 2004 05:57:55 -0800 (PST) Subject: [AccessD] Search for linked documents.... Message-ID: <20041119135756.42665.qmail@web61104.mail.yahoo.com> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ssharkins at bellsouth.net Fri Nov 19 08:13:18 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 09:13:18 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119141317.WEZQ2400.imf19aec.mail.bellsouth.net@SUSANONE> There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". From william.thompson1 at att.net Fri Nov 19 09:24:08 2004 From: william.thompson1 at att.net (William Thompson) Date: Fri, 19 Nov 2004 07:24:08 -0800 Subject: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? In-Reply-To: <20041119141317.WEZQ2400.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <200411191524.iAJFO9L18806@databaseadvisors.com> Hi, I have a SQL Server front-end that has to be a minimal code solution, and I wanted to open a form, form_someform, with openargs "Edit" or "Add". I don't want the user to have to 'x' out to close the form instance. There would only be the two additional instances. My question is how to handle the close button in the new instance. Am I correct to presume that I have to pass the new instance a reference to itself in order to hand control back to the caller? The call to open the instance would be something like Dim frmSomeTable As Form_SomeTable Set frmSomeTable = New Form_SomeTable Form_SomeTable.Setfocus Set Form_SomeTable = Nothing ''' I think the new instance needs a Method like public sub InstanceIt(TheCaller as form) Set m_frmThis = Me Set m_frmCaller = TheCaller Me.Visible = True end sub ''' So eventually I'd like to somehow have a command button that closes the form sort of like.. Private Sub cmdCloseThis() ''' Set m_frmThis = Nothing ''' Or I guess it has to be ''' HandItBackToTheCaller me.Hide m_frmCaller.SetFocus End Sub ''' Caller's Code continued ... Set Form_SomeTable = Nothing This won't work though will it ? I'm a little fuzzy on it, any help appreciated. Bill From Gustav at cactus.dk Fri Nov 19 09:33:27 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Nov 2004 16:33:27 +0100 Subject: [AccessD] Control reference question. Message-ID: Hi Bobby Always use the syntax stated here (one line): http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGuide/SyntaxForSubs.htm Other methods may work (as you have demonstrated) but they are generally not considered good programming practice. "Svar:" is Danish for "Re:". We have moved to a brand new GroupWise 6.5 system (boy, this rocks) and currently I'm running the Danish localisation ... haven't found out yet how to adjust this detail. /gustav >>> bheid at appdevgrp.com 18-11-2004 19:26:38 >>> Gustav, Yes, that works also. Why would I need to put .Report on the end? It already knows it is in the Reports collection? I have never seen anything like that when referencing something on a form either? Is there a .Form for the forms? Also, what is Svar in the subject? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 12:37 PM To: accessd at databaseadvisors.com Subject: Svar: RE: [AccessD] Control reference question. Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From Stephen.Pickering at caremark.com Fri Nov 19 09:39:30 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Fri, 19 Nov 2004 09:39:30 -0600 Subject: [AccessD] Updatable UNION? Message-ID: <35C4AC5A5AFD9642833200159C258156A32C7D@s98026.psd.caremark.int> IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. Steve ----- Susan Harkins' Original Message----- There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Nov 19 09:43:38 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 19 Nov 2004 09:43:38 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <000e01c4ce4e$8a192090$de1811d8@danwaters> I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems From bheid at appdevgrp.com Fri Nov 19 09:46:53 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 19 Nov 2004 10:46:53 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B9B3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9FE@ADGSERVER> Thanks for the link. Printing it now. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, November 19, 2004 10:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Always use the syntax stated here (one line): http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm Other methods may work (as you have demonstrated) but they are generally not considered good programming practice. "Svar:" is Danish for "Re:". We have moved to a brand new GroupWise 6.5 system (boy, this rocks) and currently I'm running the Danish localisation ... haven't found out yet how to adjust this detail. /gustav From JColby at dispec.com Fri Nov 19 09:47:21 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 19 Nov 2004 10:47:21 -0500 Subject: [AccessD] Finite instances of form in Edit, Add modes - Clos e cmdButton? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF999@DISABILITYINS01> A form opened in this manner has to have a pointer to the form stored somewhere in order to remain open. As soon as the last pointer to that form is set to nothing, the form will close. One way to keep the form open is to pass the pointer to the form in to the form, where it stores the pointer to itself in its header. The close button does nothing more than set that pointer = nothing. That allows the form to close itself. It is not possible to pass pointers as openagrs, the data type of an openarg is a string. Thus you have to build a public function in the form being opened that can be called and a pointer passed in, or the form being opened has to reach back to the opening form and ask for the pointer to itself. The other way is to have the calling form to store the pointer to the form, but now the calling form has to close the new form by setting the pointer to nothing. Does all this make sense? John W. Colby The DIS Database Guy -----Original Message----- From: William Thompson [mailto:william.thompson1 at att.net] Sent: Friday, November 19, 2004 10:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? Hi, I have a SQL Server front-end that has to be a minimal code solution, and I wanted to open a form, form_someform, with openargs "Edit" or "Add". I don't want the user to have to 'x' out to close the form instance. There would only be the two additional instances. My question is how to handle the close button in the new instance. Am I correct to presume that I have to pass the new instance a reference to itself in order to hand control back to the caller? The call to open the instance would be something like Dim frmSomeTable As Form_SomeTable Set frmSomeTable = New Form_SomeTable Form_SomeTable.Setfocus Set Form_SomeTable = Nothing ''' I think the new instance needs a Method like public sub InstanceIt(TheCaller as form) Set m_frmThis = Me Set m_frmCaller = TheCaller Me.Visible = True end sub ''' So eventually I'd like to somehow have a command button that closes the form sort of like.. Private Sub cmdCloseThis() ''' Set m_frmThis = Nothing ''' Or I guess it has to be ''' HandItBackToTheCaller me.Hide m_frmCaller.SetFocus End Sub ''' Caller's Code continued ... Set Form_SomeTable = Nothing This won't work though will it ? I'm a little fuzzy on it, any help appreciated. Bill -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 10:28:20 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:28:20 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Nov 19 10:28:07 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 19 Nov 2004 11:28:07 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: References: Message-ID: <419E1F17.4060700@rogers.com> I wouldn't be quite that hasty, Gustav. You are of course correct that UNIONs are read-only, but you can certainly grab the PK, pop up a form that permits the update, and Refresh rather than Requery. I've done this particular thing several times and it works a treat. Arthur Gustav Brock wrote: >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> >>>> >>>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk > > > From cfoust at infostatsystems.com Fri Nov 19 10:30:56 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:30:56 -0800 Subject: [AccessD] Updatable UNION? Message-ID: Unions are not updatable by definition, Susan, no matter what tricks you use. In a Union, there is no distinction between the tables the fields come from and the names don't even have to match,just the datatypes, so there's no way to update any of the data. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, November 19, 2004 6:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Updatable UNION? There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 10:37:18 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:37:18 -0800 Subject: [AccessD] ActiveX control for capturing a signature? Message-ID: You need additional hardware to capture the signature. The kind of hardware determines the software and the OCX you use. We use the Topaz SigLite pads, chosen in part because they are compatible with Access and their support is good. Warning: programming this stuff and making it work is tricky! There are also security considerations. Are the users willing to have their signatures stored somewhere for an indeterminate period and with unknown security? We store sigs only long enough to produce PDF documents containing the signed reports and then destroy the signature string, which is captured in a table. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Thursday, November 18, 2004 6:04 PM To: accessd at databaseadvisors.com Subject: [AccessD] ActiveX control for capturing a signature? A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.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 Nov 19 10:39:23 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:39:23 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From ssharkins at bellsouth.net Fri Nov 19 10:40:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 11:40:23 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: <35C4AC5A5AFD9642833200159C258156A32C7D@s98026.psd.caremark.int> Message-ID: <20041119164047.HUBM2443.imf18aec.mail.bellsouth.net@SUSANONE> Yeah, I just have this nagging little "tip" that I can't seem to fully remember -- and it may not have anything to do with making UNION updateable, but rather using UNION in some other non-traditional manner. I hate having everything boxed up. :( Susan H. IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. From JColby at dispec.com Fri Nov 19 10:49:39 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 19 Nov 2004 11:49:39 -0500 Subject: [AccessD] Form Sub form Problem Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF99C@DISABILITYINS01> Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Nov 19 10:52:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Nov 2004 17:52:39 +0100 Subject: [AccessD] Updatable UNION? Message-ID: Hi Andy OK, if that works, Andy would be fine. I haven't tried myself, just noted that a requery was out of the qestion: >By the way it's not practical to upodate the underlying tables and requery >to display the depatch info because there's a lot of data on screen and >requerying takes too long. /gustav >>> artful at rogers.com 19-11-2004 17:28:07 >>> I wouldn't be quite that hasty, Gustav. You are of course correct that UNIONs are read-only, but you can certainly grab the PK, pop up a form that permits the update, and Refresh rather than Requery. I've done this particular thing several times and it works a treat. Arthur Gustav Brock wrote: >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> >>>> >>>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk From jmhla at earthlink.net Fri Nov 19 10:50:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 08:50:54 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191652.iAJGqwL31758@databaseadvisors.com> Hey Charlotte, I doubt it but I have a signed work order and a third person paying me so I feel secure. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 8:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 11:28:26 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 09:28:26 -0800 Subject: [AccessD] Updatable UNION? Message-ID: Are you thinking of the tip on using a UNION to add an "ALL" selection to a dropdown list? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, November 19, 2004 8:40 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Updatable UNION? Yeah, I just have this nagging little "tip" that I can't seem to fully remember -- and it may not have anything to do with making UNION updateable, but rather using UNION in some other non-traditional manner. I hate having everything boxed up. :( Susan H. IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 11:30:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 09:30:30 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 hudsonhealthplan.org Fri Nov 19 11:27:52 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 19 Nov 2004 12:27:52 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B31@TTNEXCHCL2.hshhp.com> We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 11:43:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 19 Nov 2004 11:43:43 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411191729.iAJHTDL09065@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041119114207.03b1e520@pop3.highstream.net> Or, start translating the reports and installing new fonts if they are required for the language. Then, get ready to run the reports from their own MDB because of the number of them. Robert At 11:29 AM 11/19/2004 -0600, you wrote: >Date: Fri, 19 Nov 2004 08:28:20 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Selecting Languages - English or Spanish or > Something >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems From donald.a.Mcgillivray at mail.sprint.com Fri Nov 19 11:53:44 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 19 Nov 2004 11:53:44 -0600 Subject: [AccessD] Need a summary query to return more than one record for amember of a group Message-ID: <988E2AC88CCB54459286C4077DB662F502858655@PDAWB03C.ad.sprint.com> Thanks, Gustav! That should do the trick. Never thought of using the Top N in this way. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] Need a summary query to return more than one record for amember of a group Hi Don You need to, for each record, look up the date/time of the next entry and calculate the minutes: lngMinutes: DateDiff("n", InsertTime, (Select Top 1 T.InsertTime From tblTable As T Where T.InsertTime > tblTable.InsertTime Order By T.InsertTime Asc) The sum the minutes by grouping in another query where you use the above as source. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 18-11-2004 18:11:37 >>> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Nov 19 11:53:27 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 19 Nov 2004 12:53:27 -0500 Subject: [AccessD] Form Sub form Problem Message-ID: They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Fri Nov 19 12:22:33 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 10:22:33 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191824.iAJIOYL07083@databaseadvisors.com> The cross rookie programmers? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, November 19, 2004 9:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Fri Nov 19 12:32:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 10:32:46 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191834.iAJIYlL18698@databaseadvisors.com> They weren't before but they are now. Joe Hecht jmhla at earthlink.net 28g From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust ite: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Nov 19 12:42:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 Nov 2004 10:42:44 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something References: <000e01c4ce4e$8a192090$de1811d8@danwaters> Message-ID: <419E3EA4.2070408@shaw.ca> I use French English Data Entry for Access occasionally in programs for Canadian Federal Gov't requirements. For starters you want to setup your keyboard for multilanguage input. Go to Control panel Regional Language Setting , Select Language Tab, Click Details Now select the language HeHeehee, this is where your problems start. There are 18 Regional versions of Spanish available. Okay so select one. Then choose where you want the language selection bar to appear floating at top of screen or in taskbar Check em all off till you are comfortable with one Also click Key Settings to allow switching language setting from keyboard, I use Alt-LeftShift. I have code lying around that allows you to interrogate the language bar from vba code and switch it. This allows bilingual form data entry. Now you can enter headers in design mode etc for seperate reports in whatever language via Unicode Different languages require you to perhaps change positions on reports, ie German words are 30% longer than English. I guess you will have to discuss with your client how to handle detail lines from tables Does she want a Spanish translation of Widgets to appear. El Widget? or La Widget. There are some automatic translation programs that may help here in $1000 range. Then you will have to change your queries and tables to handle this. Just hope they don't want time and currency formats changed. Bonne Chance. Buena Suerte Dan Waters wrote: >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Fri Nov 19 12:50:28 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 13:50:28 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119185105.HMAY2410.imf24aec.mail.bellsouth.net@SUSANONE> I know, I know, I know... ;) Still, something is nagging at me. In the middle of the night, it will rush into my head, wake me up and I will realize it had nothing at all to do with the subject at hand. Susan H. Unions are not updatable by definition, Susan, no matter what tricks you use. In a Union, there is no distinction between the tables the fields come from and the names don't even have to match,just the datatypes, so there's no way to update any of the data. From cfoust at infostatsystems.com Fri Nov 19 12:53:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 10:53:27 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: No, it's the veteran programmers who get cross. The rookies don't know enough to be cranky! Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, November 19, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem The cross rookie programmers? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, November 19, 2004 9:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 13:39:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 14:39:30 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119194006.FXYR2400.imf19aec.mail.bellsouth.net@SUSANONE> No, but possible the trick of adding ALL to UNION to speed it up -- maybe... Who knows... I have a bad headache. :) Mixed up Access tips often dance around in my head when I have a headache. :) Susan H. Are you thinking of the tip on using a UNION to add an "ALL" selection to a dropdown list? From Jim.Hale at FleetPride.com Fri Nov 19 13:51:12 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 19 Nov 2004 13:51:12 -0600 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233723A@corp-es01.fleetpride.com> re: "lost messages" they are probably up on some screen of an overworked security analyst in Homeland security who is trying to decide if they are OK to let through. Jim Hale -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Friday, November 19, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dwaters at usinternet.com Fri Nov 19 14:49:19 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 19 Nov 2004 14:49:19 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <29937037.1100885921698.JavaMail.root@sniper17.securence.com> Message-ID: <001001c4ce79$3de4dc70$de1811d8@danwaters> Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Fri Nov 19 15:01:28 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 19 Nov 2004 16:01:28 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: ;) Sad that it could be true...maybe not today, but someday... Mark -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Friday, November 19, 2004 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost re: "lost messages" they are probably up on some screen of an overworked security analyst in Homeland security who is trying to decide if they are OK to let through. Jim Hale -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Friday, November 19, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From pcs at azizaz.com Fri Nov 19 17:44:41 2004 From: pcs at azizaz.com (Borge Hansen) Date: Sat, 20 Nov 2004 09:44:41 +1000 Subject: [AccessD] Triple State Check Box References: Message-ID: <005001c4ce91$c05aea60$fa10a8c0@Albatross> Hi, I've been playing around with the triple state property of a checkbox on a bound multirecord subform bound to a Yes/No field in the backend table. To make it work I finally had to bind the check box control to a field with a different datatype. It's now bound to an integer field with default value of 'null' and validation rule set to: 'Between -1 And 0 Or Is Null' . Now it works. But : Is that the (only) way to do it, or have I overlooked something? Regards Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From william.thompson1 at att.net Fri Nov 19 19:51:52 2004 From: william.thompson1 at att.net (william.thompson1 at att.net) Date: Sat, 20 Nov 2004 01:51:52 +0000 Subject: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? Message-ID: <112020040151.12465.419EA337000D5E16000030B12160280741CE02019C9F0301089BD2030E0704040799@att.net> Yes, that does make sense. I think what threw me at first was seeing 'SetFocus' as in: set ....etc Form_FrmSome.Setfocus I realize now that's how control is passed to the instance. The visible property happens later, and in the new instance itself. me.visible = true I understand now that a Public Function is built in the new instance form, which allows it to retain a reference to itself, and that a reference could not be passed via openargs. Another part of this that is always tricky for me is that a form's Public Function can be called when it is not loaded. It's not hidden in this pristine state, yet it remains unloaded and can cycle through records. I think ideally I'd like to have, as you describe, the close button set the reference = nothing Thanks, Bill -------------- Original message from "Colby, John" : -------------- > A form opened in this manner has to have a pointer to the form stored > somewhere in order to remain open. As soon as the last pointer to that form > is set to nothing, the form will close. > > One way to keep the form open is to pass the pointer to the form in to the > form, where it stores the pointer to itself in its header. The close button > does nothing more than set that pointer = nothing. That allows the form to > close itself. > > It is not possible to pass pointers as openagrs, the data type of an openarg > is a string. Thus you have to build a public function in the form being > opened that can be called and a pointer passed in, or the form being opened > has to reach back to the opening form and ask for the pointer to itself. > > The other way is to have the calling form to store the pointer to the form, > but now the calling form has to close the new form by setting the pointer to > nothing. > > Does all this make sense? > > John W. Colby > The DIS Database Guy > > > -----Original Message----- > From: William Thompson [mailto:william.thompson1 at att.net] > Sent: Friday, November 19, 2004 10:24 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Finite instances of form in Edit, Add modes - > Close cmdButton? > > > Hi, > I have a SQL Server front-end that has to be a minimal code solution, and I > wanted to open a form, form_someform, with openargs "Edit" or "Add". > > I don't want the user to have to 'x' out to close the form instance. There > would only be the two additional instances. > > My question is how to handle the close button in the new instance. Am I > correct to presume that I have to pass the new instance a reference to > itself in order to hand control back to the caller? > > The call to open the instance would be something like > > Dim frmSomeTable As Form_SomeTable > > Set frmSomeTable = New Form_SomeTable > > Form_SomeTable.Setfocus > > Set Form_SomeTable = Nothing > > ''' I think the new instance needs a Method like > > public sub InstanceIt(TheCaller as form) > > Set m_frmThis = Me > > Set m_frmCaller = TheCaller > > Me.Visible = True > > end sub > > ''' So eventually I'd like to somehow have a command button that closes the > form sort of like.. > > Private Sub cmdCloseThis() > > ''' Set m_frmThis = Nothing > > ''' Or I guess it has to be > ''' HandItBackToTheCaller > me.Hide > > m_frmCaller.SetFocus > > End Sub > > ''' Caller's Code continued ... > Set Form_SomeTable = Nothing > > This won't work though will it ? I'm a little fuzzy on it, any help > appreciated. > > Bill > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 lmrazek at lcm-res.com Sat Nov 20 07:44:46 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Sat, 20 Nov 2004 07:44:46 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: <112020040151.12465.419EA337000D5E16000030B12160280741CE02019C9F0301089BD2030E0704040799@att.net> Message-ID: <200411200844478.SM01080@hplaptop> Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From jwcolby at colbyconsulting.com Sat Nov 20 08:21:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 20 Nov 2004 09:21:14 -0500 Subject: [AccessD] Norton av Message-ID: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From dwaters at usinternet.com Sat Nov 20 11:43:34 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 20 Nov 2004 11:43:34 -0600 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: <000001c4cf28$758a0ec0$de1811d8@danwaters> Happy Thanksgiving to everyone! I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. From Gustav at cactus.dk Sat Nov 20 12:42:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Nov 2004 19:42:22 +0100 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: Hi Dan Here is how Kath Pelletti did a year ago: Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For I = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(I).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(I).Properties(propName).Value <> propVal Then MyDB.TableDefs(I).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(I).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(I).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(I).Name & "." MyDB.Close Exit Function End If End If End If Next I MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function /gustav >>> dwaters at usinternet.com 20-11-2004 18:43:34 >>> I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. From dwaters at usinternet.com Sat Nov 20 13:10:21 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 20 Nov 2004 13:10:21 -0600 Subject: [AccessD] Change SubDatasheetName to [None] in code? In-Reply-To: <25131053.1100976769639.JavaMail.root@sniper17.securence.com> Message-ID: <000001c4cf34$950fdbb0$de1811d8@danwaters> Thanks Gustav! (and Kath)! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 20, 2004 12:42 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Change SubDatasheetName to [None] in code? Hi Dan Here is how Kath Pelletti did a year ago: Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For I = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(I).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(I).Properties(propName).Value <> propVal Then MyDB.TableDefs(I).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(I).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(I).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(I).Name & "." MyDB.Close Exit Function End If End If End If Next I MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function /gustav >>> dwaters at usinternet.com 20-11-2004 18:43:34 >>> I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Wed Nov 17 12:05:52 2004 From: lists at theopg.com (MarkH) Date: Wed, 17 Nov 2004 18:05:52 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <000001c4ccd0$147c70a0$0e0b6bd5@netboxxp> Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From john at winhaven.net Sat Nov 20 19:00:21 2004 From: john at winhaven.net (John Bartow) Date: Sat, 20 Nov 2004 19:00:21 -0600 Subject: [AccessD] Norton av In-Reply-To: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Message-ID: Depends on the version but in the last couple of them you go into NAV then click options then email then "try to repair, if unsuccessful quietly delete". HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 8:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Nov 20 19:55:35 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 20 Nov 2004 17:55:35 -0800 Subject: [AccessD] Norton av In-Reply-To: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Message-ID: Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Nov 20 20:21:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 20 Nov 2004 21:21:05 -0500 Subject: [AccessD] Norton av In-Reply-To: Message-ID: <001a01c4cf70$c16476d0$e8dafea9@ColbyM6805> Id have to do the entire domain. The address is no doubt spoofed and coming from a different address every time. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 20 22:28:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 20:28:14 -0800 Subject: [AccessD] x posted Get name for message box Message-ID: <000001c4cf82$87391620$6501a8c0@delllaptop> I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Developer at UltraDNT.com Sat Nov 20 22:40:42 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Sat, 20 Nov 2004 23:40:42 -0500 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000001c4cf82$87391620$6501a8c0@delllaptop> Message-ID: <000c01c4cf84$429cedf0$0200a8c0@COA3> "You have chosen to delete " & Me.FirstName & " " & Me.LastName & "!" -- substituting your control names for first & last name Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 20, 2004 11:28 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] x posted Get name for message box I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 20 22:58:11 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 20:58:11 -0800 Subject: [AccessD] XPOSTED Where to put a query. Message-ID: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> I am working on an inherited database. The original database there was a 1->1 relationship between employees and job titles. At the request of the client, I have made a 1->many relationship between employees and job titles. This sql was the after update to the form: INSERT INTO TrainDate ( EmpID, DocID ) SELECT Employee.EmpID, JobDoc.DocID FROM Employee INNER JOIN JobDoc ON Employee.JobTitleID = JobDoc.JobTitleID WHERE (((Employee.EmpID)=[Forms]![Employees]![EmpID]) AND ((Employee.JobTitleID)=[JobDoc].[JobTitleID])); I need to know please: 1. Where do I put the sql statement to check each record on the subform. 2. How do I ensure it does not add duplicate records if a potentional situation a. existing employee is in the system b. if they are assigned a second or more job title Hope this is clear. TIA JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Sat Nov 20 23:05:39 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 21:05:39 -0800 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000001c4cf82$87391620$6501a8c0@delllaptop> Message-ID: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> Thanks Steve, Gotta love these lists New problem: How do I get related records in other tables? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 20, 2004 8:28 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] x posted Get name for message box I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 20 23:20:47 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 21:20:47 -0800 Subject: [AccessD] How do I find out about .dlls Message-ID: <000b01c4cf89$e0d57050$6501a8c0@delllaptop> Specificly owc10.dll JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Gustav at cactus.dk Sun Nov 21 02:42:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 21 Nov 2004 09:42:41 +0100 Subject: [AccessD] How do I find out about .dlls Message-ID: Hi Joe Google - too many hits to list. /gustav >>> jmhla at earthlink.net 21-11-2004 06:20:47 >>> Specificly owc10.dll From Gustav at cactus.dk Sun Nov 21 04:21:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 21 Nov 2004 11:21:22 +0100 Subject: [AccessD] Search for linked documents.... Message-ID: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander From artful at rogers.com Sun Nov 21 10:45:00 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 21 Nov 2004 11:45:00 -0500 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> References: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> Message-ID: <41A0C60C.4050302@rogers.com> I'd write a wrapper function rather than calling MsgBox directly. Something along the lines of .... Function JH_MsgBox( strSubstitute, strTitle ) As Integer Dim intResult as Integer intResult = MsgBox( "You have chosen to delete employee " & strSubstitute, vbYesNo, strTitle ) JH_MsgBox = intResult How you get the list of related rows in other tables depends a LOT on how thorough you are in documenting your tables' relationships. Assuming that you are thorough, you can get the list of related tables with a query against MSysRelationships. Make this table visible (show system objects) and browse it, and the contents are self-explanatory. The general principle is that the One table precedes the Many table in the naming scheme. The PKs and FKs are named so you could easily construct a query to list the related tables. Maybe this is going to result in a graceful routine, but I guess that in my advanced years I've grown lazy. I just declare Cascade-Delete OFF and let Access handle it. If and when the client complains, I just say, "Such a potentially disastrous action should NOT be easy." If you want to delete a salesperson and then all her sales orders and then all the sales details, then I'm going to make it difficult for you, so you will appreciate the consequences of your actions. Arthur Joe Hecht wrote: >Thanks Steve, > >Gotta love these lists > >New problem: How do I get related records in other tables? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Saturday, November 20, 2004 8:28 PM >To: 'Access Developers discussion and problem solving'; 'ACCESS-L' >Subject: [AccessD] x posted Get name for message box > >I have the following code for the on click event of a form. I want to >replace " this employee " with the current employee name on the form. > > > >How do I do that? > > > >Private Sub cmdDelEmp_Click() > > ' Comments Confirm Employeee Deletion: > > ' Parameters: - > > ' Modified : > > Dim lngRetval As Long > > > > lngRetval = MsgBox( _ > > "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & >"Do you wish to continue?", _ > > vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ > > "Confirm Emplyee Deletion") > > > > Select Case lngRetval > > Case vbYes > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 > > > > Case vbNo > > Case vbCancel > > End Select > > ' > > ' ------------------------------------- > > > > > > > >Exit_cmdDelEmp_Click: > > Exit Sub > > > >Err_cmdDelEmp_Click: > > MsgBox Err.Description > > Resume Exit_cmdDelEmp_Click > > > >End Sub > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From dwaters at usinternet.com Sun Nov 21 10:46:13 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 21 Nov 2004 10:46:13 -0600 Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup In-Reply-To: <4943882.1100985514124.JavaMail.root@sniper14.securence.com> Message-ID: <000201c4cfe9$9d282540$de1811d8@danwaters> Mark, If 'JoeJ' on secured Database A has a PID of 1234, then JoeJ will be able to (programmatically) open and run secured Database B from Database A if there is a JoeJ with PID of 1234 set up for Database B. At one point when I was setting up a few different databases, I made sure that the same people had the same PID's. I never did set up the method to run one from the other though. Best of Luck, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Wednesday, November 17, 2004 12:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Nov 21 10:58:51 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 21 Nov 2004 11:58:51 -0500 Subject: [AccessD] XPOSTED Where to put a query. In-Reply-To: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> References: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> Message-ID: <41A0C94B.1060201@rogers.com> Assume tblEmployees has 1 row, tblTitles has 3 rows, and tblEmployeeTitles has one row: EmpID 123 TitleID 1, 2, 3 EmpTitleID 1, EmpID 123, TitleID 1 You want to populate the combo for the associative table by "minus-ing" the titles already assigned. There are several ways to do this, and I don't profess to know which would best suit you or the size of your database tables.... SELECT TitleID, TitleName FROM tblTitles WHERE TitleID NOT IN( SELECT TitleID FROM tblEmpoyeeTitles WHERE EmpID = 123 ) SELECT TitleID, TitleName FROM tblTitles OUTER JOIN tblEmployeeTitles ON tblTitles.TitleID = tblEmployeeTitles.TitleID WHERE tblEmployeeTitles.TitleID IS NULL You might want to add an ORDER BY TitleName to each of these queries. Arthur Joe Hecht wrote: >I am working on an inherited database. > > > >The original database there was a 1->1 relationship between employees and >job titles. > > > >At the request of the client, I have made a 1->many relationship between >employees and job titles. > > > >This sql was the after update to the form: > > > >INSERT INTO TrainDate ( EmpID, DocID ) > >SELECT Employee.EmpID, JobDoc.DocID > >FROM Employee INNER JOIN JobDoc ON Employee.JobTitleID = JobDoc.JobTitleID > >WHERE (((Employee.EmpID)=[Forms]![Employees]![EmpID]) AND >((Employee.JobTitleID)=[JobDoc].[JobTitleID])); > > > >I need to know please: > > 1. Where do I put the sql statement to check each record on the >subform. > > 2. How do I ensure it does not add duplicate records if a >potentional situation > > a. existing employee is in the system > > b. if they are assigned a second or more job title > > > >Hope this is clear. > > > >TIA > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From jwcolby at colbyconsulting.com Sun Nov 21 13:58:57 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 21 Nov 2004 14:58:57 -0500 Subject: [AccessD] Norton av In-Reply-To: Message-ID: <002901c4d004$894084d0$e8dafea9@ColbyM6805> The problem is that NAV gets it first, and it just refuses to NOT announce to the world it has found a virus. Its damned annoying since I'm getting about a dozen a day. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sun Nov 21 14:09:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 21 Nov 2004 15:09:27 -0500 Subject: [AccessD] Norton av In-Reply-To: <002901c4d004$894084d0$e8dafea9@ColbyM6805> Message-ID: <003201c4d006$00e44e80$e8dafea9@ColbyM6805> This is too weird. There must be two routes in to that area because when I just pop up the NAV and click on email, silently quarantine is not an option, but after poking around then going back there are about 3 more options not available the first time, including silently quarantine. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, November 21, 2004 2:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Norton av The problem is that NAV gets it first, and it just refuses to NOT announce to the world it has found a virus. Its damned annoying since I'm getting about a dozen a day. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Sun Nov 21 14:23:35 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 21 Nov 2004 20:23:35 -0000 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <000b01c4cf89$e0d57050$6501a8c0@delllaptop> Message-ID: <000001c4d007$fa96ecc0$b274d0d5@minster33c3r25> Joe Try MS's DLL Help Database at http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion %2fdefault.asp%3fvartarget%3dmsdn -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 21 November 2004 05:21 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How do I find out about .dlls > > > Specificly owc10.dll > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > 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 Nov 21 14:23:35 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 21 Nov 2004 20:23:35 -0000 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <000201c4d007$fb07fe10$b274d0d5@minster33c3r25> Well I'll give the Refresh a try, but Gustav is quite correct that I said at the outset that requerying the data is out of the question. And the update has to show on-screen immediately as it is the user's visual guide to what he has and hasn't done. What I've almost got the screen converted to is using a UNION query just to populate a temp table of pk's in the form's OnOpen, then basing the form on a query which links the temp table to all of the required data. This query, although quite complex, fits the bill of being updatable and immediately updating the underlying tables. So thanks everyone for the feedback but the job's pretty well done now. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 19 November 2004 16:53 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Updatable UNION? > > > Hi Andy > > OK, if that works, Andy would be fine. > I haven't tried myself, just noted that a requery was out of the > qestion: > > >By the way it's not practical to upodate the underlying tables and > requery > >to display the depatch info because there's a lot of data on screen > and > >requerying takes too long. > > /gustav > > >>> artful at rogers.com 19-11-2004 17:28:07 >>> > > I wouldn't be quite that hasty, Gustav. You are of course correct that > > UNIONs are read-only, but you can certainly grab the PK, pop up a form > > that permits the update, and Refresh rather than Requery. > I've done this > particular thing several times and it works a treat. > > Arthur > > Gustav Brock wrote: > > >Hi Andy > > > >No, unions are read-only. If you can't go the update-behind-requery > >route, I guess you are left with the temp table. > > > >/gustav > > > > > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > >>>> > >>>> > > > >Morning all > >I've a continuous screen which needs to list two types of > order in date > >sequence. These are held on separate tables. No problem, a UNION > query > >does > >the job fine. However the user has to tick an order to say it's > >despatched, and then the screen needs to show that > information, but the > >recordset is not > >updatable. Presumably this applies to all UNION queries does it? Does > >anyone > >have a way round this or do I have to go to extracting to a temp > table > >and > >all that jazz? > > > >By the way it's not practical to upodate the underlying tables and > >requery to display the depatch info because there's a lot of data on > >screen and > >requerying takes too long. > > > >-- > >Andy Lacey > >http://www.minstersystems.co.uk > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jmhla at earthlink.net Sun Nov 21 18:10:49 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 21 Nov 2004 16:10:49 -0800 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <000001c4d007$fa96ecc0$b274d0d5@minster33c3r25> Message-ID: <200411220012.iAM0CnL10818@databaseadvisors.com> Thanks Andy, Tells me everything but what I want to know. What does OWC10.dll do? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Sunday, November 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls Joe Try MS's DLL Help Database at http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion %2fdefault.asp%3fvartarget%3dmsdn -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 21 November 2004 05:21 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How do I find out about .dlls > > > Specificly owc10.dll > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 pcs at azizaz.com Sun Nov 21 19:13:04 2004 From: pcs at azizaz.com (Borge Hansen) Date: Mon, 22 Nov 2004 11:13:04 +1000 Subject: [AccessD] How do I find out about .dlls References: <200411220012.iAM0CnL10818@databaseadvisors.com> Message-ID: <007501c4d030$6b6d0150$fa10a8c0@Albatross> Joe, Try google: OCW10.dll definition or "Microsoft Office Web Components" library Borge ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Monday, November 22, 2004 10:10 AM Subject: RE: [AccessD] How do I find out about .dlls > Thanks Andy, > > Tells me everything but what I want to know. What does OWC10.dll do? > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Sunday, November 21, 2004 12:24 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] How do I find out about .dlls > > Joe > Try MS's DLL Help Database at > > http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion > %2fdefault.asp%3fvartarget%3dmsdn > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 21 November 2004 05:21 > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] How do I find out about .dlls > > > > > > Specificly owc10.dll > > > > > > > > JOE HECHT > > > > LOS ANGELES CA > > > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From hadyn at dataconcepts.co.nz Sun Nov 21 19:15:31 2004 From: hadyn at dataconcepts.co.nz (Hadyn Morgan) Date: Mon, 22 Nov 2004 14:15:31 +1300 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <200411220012.iAM0CnL10818@databaseadvisors.com> Message-ID: It's part of Office Web Components for 2000. Hadyn -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Monday, 22 November 2004 13:11 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls Thanks Andy, Tells me everything but what I want to know. What does OWC10.dll do? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Sunday, November 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls -SNIP- From R.Griffiths at bury.gov.uk Mon Nov 22 05:28:04 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 22 Nov 2004 11:28:04 -0000 Subject: [AccessD] Design Problem Message-ID: Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard From accessd667 at yahoo.com Mon Nov 22 05:31:02 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 22 Nov 2004 03:31:02 -0800 (PST) Subject: [AccessD] Search for linked documents.... In-Reply-To: Message-ID: <20041122113102.67318.qmail@web61108.mail.yahoo.com> Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! From Chris.Foote at uk.thalesgroup.com Mon Nov 22 05:39:31 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 22 Nov 2004 11:39:31 -0000 Subject: [AccessD] Design Problem Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C4A7@ntscxch1.int.rdel.co.uk> Morning Richard! My approach to this would be to put _all_ Client details into one table and Job details into another separate table. The Job table would contain fields for fldClient1, fldClient2, fldClient3, etc. HTH - Chris Foote (UK) > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Monday, November 22, 2004 11:28 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Design Problem > > > Hi Group > > > > I am having a brain blockage - can anyone help. I will try to be as > brief as possible. > > I can't figure out how to design this one. Seems like > different options > - not sure which way to go. > > Here goes (may not be as complicated as it appears) - sorry > its so long. > --------(Snip)-------- From KP at sdsonline.net Mon Nov 22 05:40:31 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 22 Nov 2004 22:40:31 +1100 Subject: [AccessD] Design Problem References: Message-ID: <001601c4d088$167e6b90$6401a8c0@user> Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Nov 22 05:49:48 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 22 Nov 2004 11:49:48 -0000 Subject: [AccessD] Design Problem Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C4A8@ntscxch1.int.rdel.co.uk> I agree with Kath (who described my preferred solution much better than I did :-O) Chris Foote > -----Original Message----- > From: Kath Pelletti [mailto:KP at sdsonline.net] > Sent: Monday, November 22, 2004 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Design Problem > > > Richard - I think if it was me I would only have one client > table, from what you have said, but with 3 separate fields there, eg. > > 'Job' table: > Job ID (autonumber) > RequestorID (related to Client ID in Client table) > PrincipalClientID (related to Client ID in Client table) > RecipientID (related to Client ID in Client table) > > 'Client' table > Client ID (autonumber) > Name details > Address details > > > The fields RequestorID, PrincipalClientID and RecipientID > would all relate to one Client table. > > That way all 'client' data would be stored in the one table > and never duplicated, and you would have the flexibility of > having any combination of the 3 fields in the Job table. The > only mandatory field (it appears) would be the RequestorID. > > HTH > > Kath From bheid at appdevgrp.com Mon Nov 22 06:49:13 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 Nov 2004 07:49:13 -0500 Subject: [AccessD] Norton av In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2BB49@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA20@ADGSERVER> I saw that you found what you were looking for. I believe that it is the Sober virus you are getting. It was targeted at the Germans (.de). I had 27 of them in quarantine this morning when I got in. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby From Jdemarco at hudsonhealthplan.org Mon Nov 22 07:04:29 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 08:04:29 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B41@TTNEXCHCL2.hshhp.com> No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Mon Nov 22 07:16:04 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 22 Nov 2004 13:16:04 -0000 Subject: [AccessD] Design Problem Message-ID: Thanks Kath, Chris for your reply - this was my original thinking but then I had doubts. As the Recipients really may only have a name (and maybe address) I wondered whether they should have their own table. I will simply have to add logic to my FE (and have fields such as IsOrganisation, IsRecipient flags/fields on my Client table) so that when adding new Requestor Clients it displays invoice, vat etc details - but not for Recipient Clients. Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 22 November 2004 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Problem Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 pcs at azizaz.com Mon Nov 22 07:22:25 2004 From: pcs at azizaz.com (Borge Hansen) Date: Mon, 22 Nov 2004 23:22:25 +1000 Subject: Fw: [AccessD] Triple State Check Box Message-ID: <000c01c4d096$4efde370$fa10a8c0@Albatross> Any one who wants to offer a comment? Borge ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Saturday, November 20, 2004 9:44 AM Subject: Re: [AccessD] Triple State Check Box > Hi, > I've been playing around with the triple state property of a checkbox on a > bound multirecord subform bound to a Yes/No field in the backend table. > > To make it work I finally had to bind the check box control to a field with > a different datatype. > It's now bound to an integer field > with default value of 'null' > and validation rule set to: 'Between -1 And 0 Or Is Null' . > > Now it works. > > But : Is that the (only) way to do it, or have I overlooked something? > > Regards > Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From Gustav at cactus.dk Mon Nov 22 07:44:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 22 Nov 2004 14:44:22 +0100 Subject: Fw: [AccessD] Triple State Check Box Message-ID: Hi B?rge Seems OK to me. You could have chosen Byte but then you would need to record Null, 0, and 1. 1 is valid for not False in VB(A) and you can check for that with <> False or Not False Validation rule could be: 0 Or -1 Or Is Null or, for Byte: 0 Or 1 Or Is Null /gustav >>> pcs at azizaz.com 22-11-2004 14:22:25 >>> Any one who wants to offer a comment? Borge ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Saturday, November 20, 2004 9:44 AM Subject: Re: [AccessD] Triple State Check Box > Hi, > I've been playing around with the triple state property of a checkbox on a > bound multirecord subform bound to a Yes/No field in the backend table. > > To make it work I finally had to bind the check box control to a field with > a different datatype. > It's now bound to an integer field > with default value of 'null' > and validation rule set to: 'Between -1 And 0 Or Is Null' . > > Now it works. > > But : Is that the (only) way to do it, or have I overlooked something? > > Regards > Borge From dwaters at usinternet.com Mon Nov 22 09:14:33 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 09:14:33 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <1619889.1101128794822.JavaMail.root@sniper18.securence.com> Message-ID: <000801c4d0a5$f9224350$de1811d8@danwaters> I did some internet research and found that there apparently isn't anything that does 'perfect' translations - that is left to actual people! It did seem that there were some not inexpensive software solutions that would have been able to do a pretty good job. Translation on a PC is called Machine Translation. Machine translation can take a document and take a 'first cut' at doing a translation. Then someone who knows both languages can finish it off in less time. I'm going to recommend this approach to my client. This first cut can be done from Word. Open a Word document and highlight some text. Select Tools | Language | Translate. A Translate pane will appear at the right. At the bottom see 'Translate via the Web'. Select the language translation you want. Push Go. A web site will open with the Machine translation of the text you highlighted. I tried to use the Look up in Dictionary feature, but that always came back with No Suggestions. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Monday, November 22, 2004 7:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 GregSmith at starband.net Mon Nov 22 09:33:23 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 22 Nov 2004 09:33:23 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime "issue"... In-Reply-To: <000c01c4d096$4efde370$fa10a8c0@Albatross> References: <000c01c4d096$4efde370$fa10a8c0@Albatross> Message-ID: <1360.65.118.249.206.1101137603.squirrel@cetus.email.starband.net> Hello everyone! Is there a way to shut off the security messages you get in Access 2003 in a runtime version of an application? I have them shut off on my computer and it works fine here, but when I have the customer install it on their computer(s) (they don't have Access installed at all), they get the messages on startup about unsafe expressions, etc. They can't shut them off on their computers because the application doesn't allow access to those areas (restricted menus). I was hoping to be able to do it internally (in vb), but that's probably exactly what MS is trying to prevent with the security. So far they've succeeded and I've failed...and turning warnings on/off doesn't do it either. Of course, if they have Access installed, I'll tell them to just shut off the macro security (set it to 'low')...which has it's inherent dangers, but in most cases is ok. Any help or suggestions would be greatly appreciated. TIA! Greg Smith gregsmith at starband.net From sgeller at cce.umn.edu Mon Nov 22 09:40:36 2004 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 22 Nov 2004 09:40:36 -0600 Subject: [AccessD] Schedule a Query to run once a month Message-ID: I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 jmhla at earthlink.net Mon Nov 22 09:45:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 22 Nov 2004 07:45:48 -0800 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: Message-ID: <200411221547.iAMFlqL25040@databaseadvisors.com> Based on other discussions in this group, you need to have some program or operating system scheduled event to call the mdb. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, November 22, 2004 7:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 GregSmith at starband.net Mon Nov 22 09:55:39 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 22 Nov 2004 09:55:39 -0600 (CST) Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: References: Message-ID: <1432.65.118.249.206.1101138939.squirrel@cetus.email.starband.net> Susan: I have a set of queries run every night (or morning...) at 0410 when nobody is in the database. I actually have the queries in a separate application linked to the data (back end). Then using the scheduler in windows, have it run the application where the queries are set up to run in the autoexec macro of the 'different' application. Then it makes no difference if the main app is open or not, this one runs when you schedule it to run. HTH. Greg Smith gregsmith at starband.net > I have an mdb file that has an update query. I want this update query > to run once a month at a specific time. For example, the 28th day of the > month at 11:00 am. Is there a way to set this up to run even if the mdb > file is not open? > > --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 JColby at dispec.com Mon Nov 22 09:57:10 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 10:57:10 -0500 Subject: [AccessD] Schedule a Query to run once a month Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A5@DISABILITYINS01> You have to use Window's scheduler to open the database and execute the query. I would place the query out in a separate MDB, link in all and only the tables required for the query, then write a little function to run the query then shut down the db again. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, November 22, 2004 10:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 liz at symphonyinfo.com Mon Nov 22 09:57:26 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Mon, 22 Nov 2004 09:57:26 -0600 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: Message-ID: Susan, Use Windows Scheduler to open the .mdb with the update query. Set up an autoexec macro to run a function that checks the date and time, then runs the query if the current date and time are when you want it to run. It's been ages since we've heard from you! Hope all is well. Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com 763-391-7400 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, November 22, 2004 9:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 cfoust at infostatsystems.com Mon Nov 22 10:43:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 08:43:51 -0800 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: Um ... Is it too late to point out that there is code in on-line help to turn off the subdatasheet for a table. It's easy enough to expand that to the entire database. I've done it a couple of slightly different ways, but I only found the code in help after I had built virtually the same code on my own. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Saturday, November 20, 2004 9:44 AM To: 'Database Advisors' Subject: [AccessD] Change SubDatasheetName to [None] in code? Happy Thanksgiving to everyone! I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Nov 22 10:44:23 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 11:44:23 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B4C@TTNEXCHCL2.hshhp.com> Another issue we've run across with translation is dialect so you'd have to becareful with and programmed translation. Which is another reason we've got two of everything, so we can determine and control dialect issues. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Monday, November 22, 2004 10:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something I did some internet research and found that there apparently isn't anything that does 'perfect' translations - that is left to actual people! It did seem that there were some not inexpensive software solutions that would have been able to do a pretty good job. Translation on a PC is called Machine Translation. Machine translation can take a document and take a 'first cut' at doing a translation. Then someone who knows both languages can finish it off in less time. I'm going to recommend this approach to my client. This first cut can be done from Word. Open a Word document and highlight some text. Select Tools | Language | Translate. A Translate pane will appear at the right. At the bottom see 'Translate via the Web'. Select the language translation you want. Push Go. A web site will open with the Machine translation of the text you highlighted. I tried to use the Look up in Dictionary feature, but that always came back with No Suggestions. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Monday, November 22, 2004 7:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 *********************************************************************************** "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 Nov 22 10:44:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 08:44:35 -0800 Subject: [AccessD] ActiveX Charting Control For Access? Message-ID: Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Nov 22 10:45:07 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 11:45:07 -0500 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B4D@TTNEXCHCL2.hshhp.com> I think Helen Feddema has something on this on her site. It's got to do with signing the code. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Greg Smith Sent: Monday, November 22, 2004 10:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] A2003 Macro Security in Runtime "issue"... Hello everyone! Is there a way to shut off the security messages you get in Access 2003 in a runtime version of an application? I have them shut off on my computer and it works fine here, but when I have the customer install it on their computer(s) (they don't have Access installed at all), they get the messages on startup about unsafe expressions, etc. They can't shut them off on their computers because the application doesn't allow access to those areas (restricted menus). I was hoping to be able to do it internally (in vb), but that's probably exactly what MS is trying to prevent with the security. So far they've succeeded and I've failed...and turning warnings on/off doesn't do it either. Of course, if they have Access installed, I'll tell them to just shut off the macro security (set it to 'low')...which has it's inherent dangers, but in most cases is ok. Any help or suggestions would be greatly appreciated. TIA! Greg Smith gregsmith at starband.net -- _______________________________________________ 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 kost36 at otenet.gr Mon Nov 22 11:46:38 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 22 Nov 2004 19:46:38 +0200 Subject: [AccessD] Some help please... References: Message-ID: <002601c4d0bb$388be310$0100a8c0@KOST36> On a start form I use a list box witch on open responds like: SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & [Father_name] & ", " & [year_born] & ")" AS patient FROM MT_basic_char I am trying to filter the patients names from a text box like: Private Sub text_box_Change() Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE [Last_Name] like '" & Me![text_box].Text & "*'" End Sub And continue with a double click to open tha main form filtered on: Private Sub list2_DblClick(Cancel As Integer) Dim stDocName As String Dim stLinkCriteria As String stDocName = "MT_basic_char" stLinkCriteria = "[AM] = " & Me!list2.Value & "" DoCmd.OpenForm stDocName, , , stLinkCriteria End Sub My question is: on text_box change how it could be possible to apear also all data: AM, Last_name, Father_name and year_born in order to work the double click? thank's a lot / kostas konstantinidis From JColby at dispec.com Mon Nov 22 11:52:47 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 12:52:47 -0500 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy From lists at theopg.com Mon Nov 22 12:18:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 22 Nov 2004 18:18:54 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbona different workgroup In-Reply-To: <000201c4cfe9$9d282540$de1811d8@danwaters> Message-ID: <000801c4d0bf$bab01790$920d6bd5@netboxxp> Thanks Dan... I have discussed it with the client and it looks like as an interim we will use ADO connections instead of linked tables :@) and then in the long term we will be merging the two workgroups :@))) Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 21 November 2004 16:46 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Accessing data in secured mdb from another secured mdbona different workgroup Mark, If 'JoeJ' on secured Database A has a PID of 1234, then JoeJ will be able to (programmatically) open and run secured Database B from Database A if there is a JoeJ with PID of 1234 set up for Database B. At one point when I was setting up a few different databases, I made sure that the same people had the same PID's. I never did set up the method to run one from the other though. Best of Luck, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Wednesday, November 17, 2004 12:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.799 / Virus Database: 543 - Release Date: 19/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From Gustav at cactus.dk Mon Nov 22 12:21:28 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 22 Nov 2004 19:21:28 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- From JColby at dispec.com Mon Nov 22 12:23:39 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 13:23:39 -0500 Subject: [AccessD] #Num! Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A8@DISABILITYINS01> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? John W. Colby The DIS Database Guy From Developer at UltraDNT.com Mon Nov 22 12:32:39 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 22 Nov 2004 13:32:39 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Message-ID: <000701c4d0c1$a579e070$0200a8c0@COA3> How about: DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel9, "sheet1", "c:\temp\receipts.xls", True, "a1:h100" Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Monday, November 22, 2004 12:53 PM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Linking to an excel spreadsheet Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Nov 22 12:38:52 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 13:38:52 -0500 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A9@DISABILITYINS01> Gustav, You can link directly to a sheet in a .xls file, whereupon that sheet looks like a table in Access. The tdf is what is used to manipulate the linked table, at least in terms of discovering the name of the sheet, the name of the file it links to etc. I receive spreadsheets from the client. I link them in to the database, then write queries to append all the data from the spreadsheet into a raw data table. However, the spreadsheet is created by hand so the sheet name internal to the spreadsheet is not necessarily consistent from file to file. I am attempting to get the name of the sheet but have had instances where that failed. I have also had instances where I deleted the sheet and simply need to "relink" the spreadsheet from scratch. It is this process to which I am referring. Given a spreadsheet with a single sheet inside, with the data in a format such that the first line has field names, how do I "link" the spreadsheet to Access programmatically? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Monday, November 22, 2004 1:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking to an excel spreadsheet Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Nov 22 13:06:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 11:06:29 -0800 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Are you trying to do it with DAO or ADO, John? I have some ADO code I wrote way back when to drop and recreate a textlink and it handled XL as an option. I've attached it for whatever use it might be. Don't be critical, this was early in my use of ADO. Charlotte Foust Public Function LinkExternalFileADO(ByVal strTextFileName As String, _ ByVal strLinkTable As String, _ ByVal strLinkSpecRange As String, _ Optional blnXL As Boolean) As Boolean 'Created by Charlotte Foust 'drops and relinks the temp table 'and returns a boolean value for 'the success of the operation 'last modified 7/5/2001 'Sample call: LinkTextFileADO("MyTable.tab","MyTable","MyTable Spec") ' LinkTextFileADO("MySheet.xls","MySheet","MyRange",True) On Error GoTo Proc_err Dim cat As ADOX.Catalog Dim cnn As ADODB.Connection Dim errsCnn As ADODB.Errors Dim errCurr As ADODB.Error 'initialize the return value LinkExternalFileADO = True 'initialize the object variables Set cnn = CurrentProject.Connection Set cat = New ADOX.Catalog cat.ActiveConnection = cnn Set errsCnn = cnn.Errors errsCnn.Clear 'if the file exists, try to link it If strLinkTable <> "" Then 'If no path was included, use the current path If InStr(strTextFileName, "\") = 0 Then strTextFileName = CurrentProject.Path & "\" & strTextFileName End If 'InStr(strTextFileName, "\") = 0 'if the file exists then ... If Dir(strTextFileName) <> "" Then On Error Resume Next 'delete the existing table link cat.Tables.Delete strLinkTable On Error GoTo Proc_err 'link either a text file or an Excel spreadsheet If Not blnXL Then 'create a new link to the text file DoCmd.TransferText acLinkDelim, strLinkSpecRange, _ strLinkTable, strTextFileName Else 'If Not blnXL 'create a new link to the Excel file DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel9, _ strLinkTable, strTextFileName, True, strLinkSpecRange End If 'Not blnXL Else 'If Dir(strTextFileName) <> "" 'not a valid filename or path LinkExternalFileADO = False End If 'Dir(strTextFileName) <> "" End If Proc_exit: 'cleanup and exit On Error Resume Next Set cat = Nothing Set errsCnn = Nothing Set errCurr = Nothing Set cnn = Nothing Exit Function Proc_err: If errsCnn.Count > 0 Then For Each errCurr In errsCnn MsgBox "Error #" & errCurr.Number & "--" & errCurr.Description _ & vbCrLf & CurrentProject.Name & ".LinkTextFileADO" Next errCurr errsCnn.Clear End If If Err <> 0 Then MsgBox Err.Number & "--" & Err.Description & vbCr _ & " in LinkTextFileADO", vbOKOnly End If LinkExternalFileADO = False Resume Proc_exit End Function 'LinkExternalFileADO(ByVal strTextFileName As String, _ ByVal strLinkTable As String, _ ByVal strLinkSpecRange As String, _ Optional blnXL As Boolean) As Boolean -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, November 22, 2004 9:53 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Linking to an excel spreadsheet Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Nov 22 13:22:33 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 22 Nov 2004 21:22:33 +0200 Subject: [AccessD] Some help please... References: <002601c4d0bb$388be310$0100a8c0@KOST36> Message-ID: <00a201c4d0c8$ab4d1a10$0100a8c0@KOST36> Guys, I have just found the solution... The problem fixed Thank's ----- Original Message ----- From: "Kostas Konstantinidis" To: "Access Developers discussion and problem solving" Sent: Monday, November 22, 2004 7:46 PM Subject: [AccessD] Some help please... > On a start form I use a list box witch on open responds like: > SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & > [Father_name] & ", " & [year_born] & ")" AS patient > FROM MT_basic_char > > I am trying to filter the patients names from a text box like: > Private Sub text_box_Change() > Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE > [Last_Name] like '" & Me![text_box].Text & "*'" > End Sub > > And continue with a double click to open tha main form filtered on: > Private Sub list2_DblClick(Cancel As Integer) > Dim stDocName As String > Dim stLinkCriteria As String > stDocName = "MT_basic_char" > stLinkCriteria = "[AM] = " & Me!list2.Value & "" > DoCmd.OpenForm stDocName, , , stLinkCriteria > End Sub > > My question is: on text_box change how it could be possible to apear also > all data: AM, Last_name, Father_name and year_born > in order to work the double click? > > thank's a lot > / kostas konstantinidis > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Mon Nov 22 15:35:52 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 22 Nov 2004 21:35:52 +0000 Subject: [AccessD] Some help please... In-Reply-To: <002601c4d0bb$388be310$0100a8c0@KOST36> Message-ID: Kostas, If I understand correctly...you want to display other information besides the name for the user to make their choice from. If you are using a combo box, you could include a PK in the select statement, indicate this as the 'bound column' on the properties of the combo box, hide this field with the 'column widths' property, and then use this field to filter the main form. Hope this helps. Thanks, Mark A. Matte >From: "Kostas Konstantinidis" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Some help please... >Date: Mon, 22 Nov 2004 19:46:38 +0200 > >On a start form I use a list box witch on open responds like: >SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & >[Father_name] & ", " & [year_born] & ")" AS patient >FROM MT_basic_char > >I am trying to filter the patients names from a text box like: >Private Sub text_box_Change() >Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE >[Last_Name] like '" & Me![text_box].Text & "*'" >End Sub > >And continue with a double click to open tha main form filtered on: >Private Sub list2_DblClick(Cancel As Integer) > Dim stDocName As String > Dim stLinkCriteria As String > stDocName = "MT_basic_char" > stLinkCriteria = "[AM] = " & Me!list2.Value & "" > DoCmd.OpenForm stDocName, , , stLinkCriteria >End Sub > >My question is: on text_box change how it could be possible to apear also >all data: AM, Last_name, Father_name and year_born >in order to work the double click? > >thank's a lot >/ kostas konstantinidis > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Nov 22 15:39:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 22 Nov 2004 13:39:48 -0800 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... References: <000c01c4d096$4efde370$fa10a8c0@Albatross> <1360.65.118.249.206.1101137603.squirrel@cetus.email.starband.net> Message-ID: <41A25CA4.806@shaw.ca> Get their network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. -------------- or you could try this subroutine to execute on the runtime startup as toolbar menus are disabled by runtime methods maybe after checking this is set. I forget the order of execution. Access.Application.AutomationSecurity = 1 ' msoAutomationSecurityLow This sub activates the Macro -> Security submenu to open ' the Macro Security dialog window for the user who is using ' the runtime version of Access '03 instead of the retail version, ' which may need to have the default security level changed in ' order to run the code in the modules. 'This sub requires the Microsoft Office 11.0 Library reference http://www.access.qbuilt.com/html/vba.html#SetMacroSecLvl ----------------- or Sagekey has an Access 2003 MSI install script that avoids this but is $425. ---------------- or build your own security certicate but then you still have to install in users certificate pool There are some easier ways but not if it is a runtime Greg Smith wrote: >Hello everyone! > >Is there a way to shut off the security messages you get in Access 2003 in >a runtime version of an application? I have them shut off on my computer >and it works fine here, but when I have the customer install it on their >computer(s) (they don't have Access installed at all), they get the >messages on startup about unsafe expressions, etc. They can't shut them >off on their computers because the application doesn't allow access to >those areas (restricted menus). > >I was hoping to be able to do it internally (in vb), but that's probably >exactly what MS is trying to prevent with the security. So far they've >succeeded and I've failed...and turning warnings on/off doesn't do it >either. > >Of course, if they have Access installed, I'll tell them to just shut off >the macro security (set it to 'low')...which has it's inherent dangers, >but in most cases is ok. > >Any help or suggestions would be greatly appreciated. > >TIA! > >Greg Smith >gregsmith at starband.net > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Mon Nov 22 16:57:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 23 Nov 2004 09:57:24 +1100 Subject: [AccessD] Change SubDatasheetName to [None] in code? In-Reply-To: Message-ID: <200411222257.iAMMvUx6021431@cooper.uws.edu.au> Howdy Create a Button on a form and call the button Command0 - form name is not important Copy everything below the line and paste it into the code behind the form Make sure you have a DAO reference Hope this helps Darren ____________________________________________________________________ Private Sub Command0_Click() TurnOffSubDataSheets End Sub Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For i = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(i).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(i).Properties(propName).Value <> propVal Then MyDB.TableDefs(i).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(i).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(i).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(i).Name & "." MyDB.Close Exit Function End If End If End If Next i MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function From d.dick at uws.edu.au Mon Nov 22 16:57:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 23 Nov 2004 09:57:24 +1100 Subject: [AccessD] Design Problem In-Reply-To: Message-ID: <200411222257.iAMMvUx7021431@cooper.uws.edu.au> Hi Richard Just had the same design Q myself last week The consensus was to merge My Client and Organisation tables into 1 table and have an Identifier similar to IsClientOrOrg (Client = 1 Org = 2) Saved me a whole bunch of issues and I have moved on from that 'difficult' problem Hope this helps See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, 23 November 2004 12:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Design Problem Thanks Kath, Chris for your reply - this was my original thinking but then I had doubts. As the Recipients really may only have a name (and maybe address) I wondered whether they should have their own table. I will simply have to add logic to my FE (and have fields such as IsOrganisation, IsRecipient flags/fields on my Client table) so that when adding new Requestor Clients it displays invoice, vat etc details - but not for Recipient Clients. Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 22 November 2004 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Problem Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 lmrazek at lcm-res.com Mon Nov 22 17:13:28 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Mon, 22 Nov 2004 17:13:28 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: Message-ID: <200411221813467.SM01820@hplaptop> Hi Charlotte: I'm currently evaluating components from ChartFX, ComponentOne and Nevron. Microsoft Graph provides about 80% of the functionality I need; I'm done trying to make it work. Thanks for the advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 22, 2004 10:45 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ActiveX Charting Control For Access? Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Mon Nov 22 17:18:16 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 22 Nov 2004 18:18:16 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <000801c4d0a5$f9224350$de1811d8@danwaters> References: <000801c4d0a5$f9224350$de1811d8@danwaters> Message-ID: <41A273B8.7010207@rogers.com> 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur Dan Waters wrote: >I did some internet research and found that there apparently isn't >anything that does 'perfect' translations - that is left to actual >people! It did seem that there were some not inexpensive software >solutions that would have been able to do a pretty good job. > >Translation on a PC is called Machine Translation. Machine translation >can take a document and take a 'first cut' at doing a translation. Then >someone who knows both languages can finish it off in less time. I'm >going to recommend this approach to my client. > >This first cut can be done from Word. > Open a Word document and highlight some text. > Select Tools | Language | Translate. > A Translate pane will appear at the right. > At the bottom see 'Translate via the Web'. > Select the language translation you want. > Push Go. > A web site will open with the Machine translation of the text > you highlighted. > >I tried to use the Look up in Dictionary feature, but that always came >back with No Suggestions. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Monday, November 22, 2004 7:04 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >No not on the fly. Every report is saved twice (once for English, >another for Spanish). This was all set up before I got here but I think >the difference in the text sizes (lengths) between the languages was a >major reason. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >Sent: Friday, November 19, 2004 3:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Jim, > >Are your reports partially translated on the fly? If not it seems that >you would need to have your original text information recorded in two >separate places - one for each language? > >If on the fly how is this done? > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >We have two of everything here at this point. Pick the language, print >the correct version report. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From dwaters at usinternet.com Mon Nov 22 17:33:54 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 17:33:54 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: <28941432.1101165439819.JavaMail.root@sniper17.securence.com> Message-ID: <001001c4d0eb$bb2802b0$de1811d8@danwaters> Larry, Office Web Components might work for you. It's not an ActiveX component - you set references to a couple of dll's. I'm pretty certain that you can set colors for series. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Monday, November 22, 2004 5:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] ActiveX Charting Control For Access? Hi Charlotte: I'm currently evaluating components from ChartFX, ComponentOne and Nevron. Microsoft Graph provides about 80% of the functionality I need; I'm done trying to make it work. Thanks for the advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 22, 2004 10:45 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ActiveX Charting Control For Access? Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Mon Nov 22 20:09:29 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 22 Nov 2004 21:09:29 -0500 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: <200411221547.iAMFlqL25040@databaseadvisors.com> References: <200411221547.iAMFlqL25040@databaseadvisors.com> Message-ID: <41A29BD9.5040304@rogers.com> I could be wrong, since I have never done this, but I'll take a WAG. Create a shortcut to the specific query, then schedule its execution using the Scheduler. Arthur Joe Hecht wrote: >Based on other discussions in this group, you need to have some program or >operating system scheduled event to call the mdb. > >Joe Hecht >jmhla at earthlink.net >28g >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller >Sent: Monday, November 22, 2004 7:41 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Schedule a Query to run once a month > >I have an mdb file that has an update query. I want this update query >to run once a month at a specific time. For example, the 28th day of the >month at 11:00 am. Is there a way to set this up to run even if the mdb >file is not open? > >--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 > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From mcaro at bigpond.net.au Mon Nov 22 20:45:58 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 23 Nov 2004 13:45:58 +1100 Subject: [AccessD] UNDO - Subform from Parent Message-ID: <004f01c4d106$901d1310$0100000a@MITSERVER> Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin From jwcolby at colbyconsulting.com Mon Nov 22 21:26:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 22 Nov 2004 22:26:56 -0500 Subject: [AccessD] UNDO - Subform from Parent In-Reply-To: <004f01c4d106$901d1310$0100000a@MITSERVER> Message-ID: <002f01c4d10c$4d01e8c0$e8dafea9@ColbyM6805> Martin, One issue you will run into is that a record is saved when focus leaves the form. Thus if a user is entering records in the subform and leaves the subform to click an undo on the parent, the changes in the child are saved and undo can no longer be used. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Monday, November 22, 2004 9:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] UNDO - Subform from Parent Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Nov 22 21:30:10 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 21:30:10 -0600 Subject: [AccessD] UNDO - Subform from Parent In-Reply-To: <3269189.1101178071452.JavaMail.root@sniper13.securence.com> Message-ID: <000201c4d10c$bcfce6c0$de1811d8@danwaters> Martin, Try 'Me.subFrame.Form.Undo' The subFrame is the name of the container for the subform itself. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Monday, November 22, 2004 8:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] UNDO - Subform from Parent Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Mon Nov 22 22:45:46 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 23 Nov 2004 15:45:46 +1100 Subject: [AccessD] UNDO - Subform from Parent References: <000201c4d10c$bcfce6c0$de1811d8@danwaters> Message-ID: <00a001c4d117$4c21e800$0100000a@MITSERVER> As John pointed out the record is saved as the subform loses focus so I've changed tack and decided to place an undo button inside each of my subforms.... not ideal as I wanted to keep all my buttons together but....it works! Thanks John & Dan Martin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, November 23, 2004 2:30 PM Subject: RE: [AccessD] UNDO - Subform from Parent > Martin, > > Try 'Me.subFrame.Form.Undo' > > The subFrame is the name of the container for the subform itself. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Monday, November 22, 2004 8:46 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] UNDO - Subform from Parent > > Ho folks > > Can anyone help me with the syntax to run an Undo on a subform from a > button located in the parent form...... > (how to run an Undo from a sub on its parent has been asked before... > Darren Dick 03/06/2004) but I need it around the other way so it should > be possible. > > Thanks > > Martin > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 mark.breen at gmail.com Tue Nov 23 02:18:08 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 08:18:08 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Message-ID: <26a96cce04112300187eeb9f04@mail.gmail.com> Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > Does anyone have code for linking to an excel spreadsheet? > > If I manually create a link, the wizard finds all the fields, sets up with > the "first line has field names" etc. Everything works fine. However if > the table is not linked already, I need to create a tabledef, set the > SourceTableName and Connect properties. If I then try to append the > tabledef to db.tabledefs I get an error that no fields are defined. It is > obvious that a LOT more is involved here. It appears that I have to open > the spreadsheet, get the first line, create fields with the data in the > first line, somehow figure out the datatype of each column etc. Is there a > prebuilt code I can call to do all this stuff? If the wizard can do it, > then the code behind the wizard could do it for me. > > Has anyone ever done this? > > John W. Colby > The DIS Database Guy > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Nov 23 03:27:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 10:27:14 +0100 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: Wonderful! Thank you so much Arthur. /gustav >>> artful at rogers.com 23-11-2004 00:18:16 >>> 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur From Gustav at cactus.dk Tue Nov 23 04:36:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 11:36:31 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi John That is what I mean. You open the workbook as a database, then browse the TableDefs collection and pick the table(s) you wish to link, be it by item or name: Function CheckXls() Dim dbs As DAO.Database Dim tdf As DAO.TableDef Set dbs = DBEngine(0).OpenDatabase("d:\temp\yourworkbook.xls", False, True, "Excel 5.0;HDR=YES;IMEX=2;") Debug.Print dbs.TableDefs.Count & " table(s):" For Each tdf In dbs.TableDefs Debug.Print , tdf.Name Next dbs.Close Set tdf = Nothing Set dbs = Nothing End Function Note that worksheet names carries a trailing "$" while Named Ranges don't. See my recent posting on "Search for linked documents...." /gustav >>> JColby at dispec.com 22-11-2004 19:38:52 >>> Gustav, You can link directly to a sheet in a .xls file, whereupon that sheet looks like a table in Access. The tdf is what is used to manipulate the linked table, at least in terms of discovering the name of the sheet, the name of the file it links to etc. I receive spreadsheets from the client. I link them in to the database, then write queries to append all the data from the spreadsheet into a raw data table. However, the spreadsheet is created by hand so the sheet name internal to the spreadsheet is not necessarily consistent from file to file. I am attempting to get the name of the sheet but have had instances where that failed. I have also had instances where I deleted the sheet and simply need to "relink" the spreadsheet from scratch. It is this process to which I am referring. Given a spreadsheet with a single sheet inside, with the data in a format such that the first line has field names, how do I "link" the spreadsheet to Access programmatically? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Monday, November 22, 2004 1:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking to an excel spreadsheet Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy From Gustav at cactus.dk Tue Nov 23 05:04:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 12:04:39 +0100 Subject: [AccessD] #Num! Message-ID: Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? From jwcolby at colbyconsulting.com Tue Nov 23 06:10:09 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 07:10:09 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <004601c4d155$64999a70$e8dafea9@ColbyM6805> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 23 06:15:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 07:15:17 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <26a96cce04112300187eeb9f04@mail.gmail.com> Message-ID: <004701c4d156$1804fff0$e8dafea9@ColbyM6805> Mark, I did the same kinds of thing down in Mexico. A client ran a maquilladora making clothing. They were simply accustomed to Excel and able to manipulate data in it for analysis so we always exported our data out to Excel using similar concepts to what you are discussing. Rarely poking a cell at a time but often dropping the entire table out there. Then my friend would go in and format the data, manipulate it for summations etc. all with the macro recorder on. We would then in the end dump the data and have Access run the macros that he created. It worked very well! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 3:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > Does anyone have code for linking to an excel spreadsheet? > > If I manually create a link, the wizard finds all the fields, sets up > with the "first line has field names" etc. Everything works fine. > However if the table is not linked already, I need to create a > tabledef, set the SourceTableName and Connect properties. If I then > try to append the tabledef to db.tabledefs I get an error that no > fields are defined. It is obvious that a LOT more is involved here. > It appears that I have to open the spreadsheet, get the first line, > create fields with the data in the first line, somehow figure out the > datatype of each column etc. Is there a prebuilt code I can call to > do all this stuff? If the wizard can do it, then the code behind the > wizard could do it for me. > > Has anyone ever done this? > > John W. Colby > The DIS Database Guy > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 23 06:42:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 13:42:22 +0100 Subject: [AccessD] #Num! Message-ID: Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? From Gustav at cactus.dk Tue Nov 23 06:52:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 13:52:44 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi Mark A client had a similar need. I followed John's advice and used this method which is great because it separates the handling of data from the formatting and design of the workbooks. The solution has been running for a statistics database publishing each month via e-mail neat spreadsheet reports for over two years without any error. /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:15:17 >>> Mark, I did the same kinds of thing down in Mexico. A client ran a maquilladora making clothing. They were simply accustomed to Excel and able to manipulate data in it for analysis so we always exported our data out to Excel using similar concepts to what you are discussing. Rarely poking a cell at a time but often dropping the entire table out there. Then my friend would go in and format the data, manipulate it for summations etc. all with the macro recorder on. We would then in the end dump the data and have Access run the macros that he created. It worked very well! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 3:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark From accessd667 at yahoo.com Tue Nov 23 07:05:40 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 23 Nov 2004 05:05:40 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041122113102.67318.qmail@web61108.mail.yahoo.com> Message-ID: <20041123130540.52003.qmail@web61105.mail.yahoo.com> Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! From mark.breen at gmail.com Tue Nov 23 07:08:18 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 13:08:18 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <004701c4d156$1804fff0$e8dafea9@ColbyM6805> References: <26a96cce04112300187eeb9f04@mail.gmail.com> <004701c4d156$1804fff0$e8dafea9@ColbyM6805> Message-ID: <26a96cce041123050873eba6cb@mail.gmail.com> Hello John, Would it not give you more control to do it this way? It is a little more complex, but if gives you total control. Especially if you use the tabledefs collection that Gustav describes above. That sounds interesting. Best of Luck Mark On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby wrote: > Mark, > > I did the same kinds of thing down in Mexico. A client ran a maquilladora > making clothing. They were simply accustomed to Excel and able to > manipulate data in it for analysis so we always exported our data out to > Excel using similar concepts to what you are discussing. Rarely poking a > cell at a time but often dropping the entire table out there. Then my > friend would go in and format the data, manipulate it for summations etc. > all with the macro recorder on. We would then in the end dump the data and > have Access run the macros that he created. It worked very well! > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 3:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > It is quite easy to talk to Excel, but I guess that it depends on what you > need to achieve and which way you prefer to go about it. > > I have just completed five days coding, on-site for a large European > retailer that are very, very security conscious. Unfortunately for you, I > am not allowed to take work off site, believe it or not, I am not even > allowed on the Internet or email. If it was not for that, I would just give > you the mdb. > > In a nutshell, it prepares some data using normal queries. Once ready, I > open an instance of Excel, add a sheet and then start poking the values into > excel. The first two or three cells require that you get used to it, but > once they are done, you can then fill the whole sheet. I am writing about > 35000 cells of data from within nested loops that work down and across the > page. > > >From that point, you can then programatically format the entire excel > sheet, including setting page setups etc. > > I use the Macro Recorder to get the bones of the VBA that you need and then > bring it back into Access. > > One thing that you have to be aware of is the object model in Excel. > > For example, the following code stumped me for a while yesterday > > I have three variables > objXLApp as Excel. Application > objXLBook as Excel.Workbook > objXLSht as Excel.WorkSheet > > The following lines are how they are written in Access objXLSht.Range("A1", > "C3").Select objXLApp.Selection.Font.Bold = True > > I would have presumed that it would have been objXLSht on the second line of > code. > > Anyway, it is not an Excel table, but I may suit you to just programatically > pull the data in. > > Best of luck, > > Mark > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > > Does anyone have code for linking to an excel spreadsheet? > > > > If I manually create a link, the wizard finds all the fields, sets up > > with the "first line has field names" etc. Everything works fine. > > However if the table is not linked already, I need to create a > > tabledef, set the SourceTableName and Connect properties. If I then > > try to append the tabledef to db.tabledefs I get an error that no > > fields are defined. It is obvious that a LOT more is involved here. > > It appears that I have to open the spreadsheet, get the first line, > > create fields with the data in the first line, somehow figure out the > > datatype of each column etc. Is there a prebuilt code I can call to > > do all this stuff? If the wizard can do it, then the code behind the > > wizard could do it for me. > > > > Has anyone ever done this? > > > > John W. Colby > > The DIS Database Guy > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Tue Nov 23 07:25:49 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 23 Nov 2004 08:25:49 -0500 Subject: [AccessD] Access XP - Access 2000 Message-ID: Inherited Database - not my fault. For the moment, I have an XP front end in A2K format that has a link to open up one of a gazillion backends until I can migrate the gazillion backends to one big a* backend in SQL with one front-end. So... I develop in XP due to the .printer capabilities. When this code (inherited, not my fault) runs, I get the dreaded 3033 error that I do not have the permissions to open up the database it is pointing to. If I open up Access 2000, I am able to open up the database, no problem. Any ideas? Would putting in the user id and password make this click? Thanks for the help. Private Sub Open_PartsDB() 'Hide ManufacturerDialog form, attach Parts Database tables, and open frmMainParts 'On Error GoTo Err_Open_PartsDB Dim strDocName As String Dim strLinkCriteria As String Dim tdfTmpParts As TableDef, tdfTmpPartsTC As TableDef, tdfTmpPartsProt As TableDef Dim strPrefix As String Dim strTblName As String Dim strMfr As String Dim dbsDest As DAO.Database Set dbsDest = CurrentDb() 'Create table objects Set tdfTmpParts = dbsDest.TableDefs("Parts") Set tdfTmpPartsTC = dbsDest.TableDefs("TC-Parts") Set tdfTmpPartsProt = dbsDest.TableDefs("TC-Protections") If IsNull(MfrID) Then MsgBox "Please click a manufacturer in the list" Else strDocName = "frmMainParts" strTblName = "Parts" strLinkCriteria = "q:\tc_parts\" & MfrID & "\" & MfrID & ".mdb" strPrefix = Left$(dbsDest.TableDefs("Parts").Connect, InStr(tdfTmpParts.Connect, "=")) tdfTmpParts.Connect = ";DATABASE=" & strLinkCriteria tdfTmpParts.RefreshLink strPrefix = Left$(dbsDest.TableDefs("TC-Parts").Connect, InStr(tdfTmpPartsTC.Connect, "=")) tdfTmpPartsTC.Connect = ";DATABASE=" & strLinkCriteria tdfTmpPartsTC.RefreshLink strPrefix = Left$(dbsDest.TableDefs("TC-Protections").Connect, InStr(tdfTmpPartsProt.Connect, "=")) tdfTmpPartsProt.Connect = ";DATABASE=" & strLinkCriteria tdfTmpPartsProt.RefreshLink If IsTableEmpty(strTblName) = True Then MsgBox "There are no records in the Parts Database for " & MfrID & ".", , "Parts table is empty" Exit Sub End If DoCmd.OpenForm strDocName, acNormal Forms!frmMainParts![MfrCode] = [MfrID] Forms![frmMainParts]![MfrName] = DLookup("[ManufacturerName]", "Manufacturers", "[ManufacturerCode] = MfrID") DoCmd.SetWarnings False DoCmd.OpenQuery ("~MakeMfrCode"), acNormal Me.Visible = False End If From JHewson at karta.com Tue Nov 23 07:35:31 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 23 Nov 2004 07:35:31 -0600 Subject: [AccessD] #Num! Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D00@karta-exc-int.Karta.com> Couldn't you export 0 (zero) instead of null? Would Nz() work? Then delete all 0's in the Excel spreadsheet? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 actebs at actebs.com.au Tue Nov 23 07:41:26 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 24 Nov 2004 00:41:26 +1100 Subject: [AccessD] #Num! Message-ID: <2025BB6F17FCB54791F23CD5055833280886E9@starfleet.unknown.local> John, I'm pretty sure I've encountered this previously. Try using something like: If IsError(YourFieldName) then whatever else whatever End if HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Wednesday, 24 November 2004 12:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] #Num! Couldn't you export 0 (zero) instead of null? Would Nz() work? Then delete all 0's in the Excel spreadsheet? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 23 07:52:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 23 Nov 2004 08:52:23 -0500 Subject: [AccessD] #Num! In-Reply-To: <004601c4d155$64999a70$e8dafea9@ColbyM6805> Message-ID: <20041123135222.ZKJY2443.imf18aec.mail.bellsouth.net@SUSANONE> It's my experience, that most Excel error values need to be cured before importing them into Access. Susan H. I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). From jwcolby at colbyconsulting.com Tue Nov 23 08:06:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:06:04 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <26a96cce041123050873eba6cb@mail.gmail.com> Message-ID: <004b01c4d165$9216db10$e8dafea9@ColbyM6805> Well... You mean to import one field at a time? I am trying to get data in to Access from Excel. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, Would it not give you more control to do it this way? It is a little more complex, but if gives you total control. Especially if you use the tabledefs collection that Gustav describes above. That sounds interesting. Best of Luck Mark On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby wrote: > Mark, > > I did the same kinds of thing down in Mexico. A client ran a > maquilladora making clothing. They were simply accustomed to Excel > and able to manipulate data in it for analysis so we always exported > our data out to Excel using similar concepts to what you are > discussing. Rarely poking a cell at a time but often dropping the > entire table out there. Then my friend would go in and format the > data, manipulate it for summations etc. all with the macro recorder > on. We would then in the end dump the data and have Access run the > macros that he created. It worked very well! > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 3:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > It is quite easy to talk to Excel, but I guess that it depends on what > you need to achieve and which way you prefer to go about it. > > I have just completed five days coding, on-site for a large European > retailer that are very, very security conscious. Unfortunately for > you, I am not allowed to take work off site, believe it or not, I am > not even allowed on the Internet or email. If it was not for that, I > would just give you the mdb. > > In a nutshell, it prepares some data using normal queries. Once > ready, I open an instance of Excel, add a sheet and then start poking > the values into excel. The first two or three cells require that you > get used to it, but once they are done, you can then fill the whole > sheet. I am writing about 35000 cells of data from within nested > loops that work down and across the page. > > >From that point, you can then programatically format the entire excel > sheet, including setting page setups etc. > > I use the Macro Recorder to get the bones of the VBA that you need and > then bring it back into Access. > > One thing that you have to be aware of is the object model in Excel. > > For example, the following code stumped me for a while yesterday > > I have three variables > objXLApp as Excel. Application > objXLBook as Excel.Workbook > objXLSht as Excel.WorkSheet > > The following lines are how they are written in Access > objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True > > I would have presumed that it would have been objXLSht on the second > line of code. > > Anyway, it is not an Excel table, but I may suit you to just > programatically pull the data in. > > Best of luck, > > Mark > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John > wrote: > > Does anyone have code for linking to an excel spreadsheet? > > > > If I manually create a link, the wizard finds all the fields, sets > > up with the "first line has field names" etc. Everything works > > fine. However if the table is not linked already, I need to create a > > tabledef, set the SourceTableName and Connect properties. If I then > > try to append the tabledef to db.tabledefs I get an error that no > > fields are defined. It is obvious that a LOT more is involved here. > > It appears that I have to open the spreadsheet, get the first line, > > create fields with the data in the first line, somehow figure out > > the datatype of each column etc. Is there a prebuilt code I can > > call to do all this stuff? If the wizard can do it, then the code > > behind the wizard could do it for me. > > > > Has anyone ever done this? > > > > John W. Colby > > The DIS Database Guy > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Tue Nov 23 08:07:48 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:07:48 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <004c01c4d165$d425ddd0$e8dafea9@ColbyM6805> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 23 08:08:11 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:08:11 -0500 Subject: [AccessD] #Num! In-Reply-To: <20041123135222.ZKJY2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <004d01c4d165$dd904c20$e8dafea9@ColbyM6805> Yup. PITA for sure. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, November 23, 2004 8:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! It's my experience, that most Excel error values need to be cured before importing them into Access. Susan H. I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mark.breen at gmail.com Tue Nov 23 09:02:09 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 15:02:09 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <004b01c4d165$9216db10$e8dafea9@ColbyM6805> References: <26a96cce041123050873eba6cb@mail.gmail.com> <004b01c4d165$9216db10$e8dafea9@ColbyM6805> Message-ID: <26a96cce04112307025890f150@mail.gmail.com> All I am suggestions is that if you open a connection with the XL workbook in question, you can take what you like, how you like, row by row, col by col, as a range as gustav suggests, and taking his example further, a complete sheet. Depending on the volume and speed required, some of the options above might not be relevant, but the may be options to consider. With your programmatic skills, you can have the object model built in 30 minutes and then you can access (no pun intended) any data and put it into MS Access where ever you like, specifying formats as you go. Mark On Tue, 23 Nov 2004 09:06:04 -0500, John W. Colby wrote: > Well... You mean to import one field at a time? I am trying to get data in > to Access from Excel. > > > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 8:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > Would it not give you more control to do it this way? It is a little more > complex, but if gives you total control. > > Especially if you use the tabledefs collection that Gustav describes above. > That sounds interesting. > > Best of Luck > > Mark > > On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby > wrote: > > Mark, > > > > I did the same kinds of thing down in Mexico. A client ran a > > maquilladora making clothing. They were simply accustomed to Excel > > and able to manipulate data in it for analysis so we always exported > > our data out to Excel using similar concepts to what you are > > discussing. Rarely poking a cell at a time but often dropping the > > entire table out there. Then my friend would go in and format the > > data, manipulate it for summations etc. all with the macro recorder > > on. We would then in the end dump the data and have Access run the > > macros that he created. It worked very well! > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > > Sent: Tuesday, November 23, 2004 3:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linking to an excel spreadsheet > > > > Hello John, > > > > It is quite easy to talk to Excel, but I guess that it depends on what > > you need to achieve and which way you prefer to go about it. > > > > I have just completed five days coding, on-site for a large European > > retailer that are very, very security conscious. Unfortunately for > > you, I am not allowed to take work off site, believe it or not, I am > > not even allowed on the Internet or email. If it was not for that, I > > would just give you the mdb. > > > > In a nutshell, it prepares some data using normal queries. Once > > ready, I open an instance of Excel, add a sheet and then start poking > > the values into excel. The first two or three cells require that you > > get used to it, but once they are done, you can then fill the whole > > sheet. I am writing about 35000 cells of data from within nested > > loops that work down and across the page. > > > > >From that point, you can then programatically format the entire excel > > sheet, including setting page setups etc. > > > > I use the Macro Recorder to get the bones of the VBA that you need and > > then bring it back into Access. > > > > One thing that you have to be aware of is the object model in Excel. > > > > For example, the following code stumped me for a while yesterday > > > > I have three variables > > objXLApp as Excel. Application > > objXLBook as Excel.Workbook > > objXLSht as Excel.WorkSheet > > > > The following lines are how they are written in Access > > objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True > > > > I would have presumed that it would have been objXLSht on the second > > line of code. > > > > Anyway, it is not an Excel table, but I may suit you to just > > programatically pull the data in. > > > > Best of luck, > > > > Mark > > > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John > > wrote: > > > Does anyone have code for linking to an excel spreadsheet? > > > > > > If I manually create a link, the wizard finds all the fields, sets > > > up with the "first line has field names" etc. Everything works > > > fine. However if the table is not linked already, I need to create a > > > tabledef, set the SourceTableName and Connect properties. If I then > > > try to append the tabledef to db.tabledefs I get an error that no > > > fields are defined. It is obvious that a LOT more is involved here. > > > It appears that I have to open the spreadsheet, get the first line, > > > create fields with the data in the first line, somehow figure out > > > the datatype of each column etc. Is there a prebuilt code I can > > > call to do all this stuff? If the wizard can do it, then the code > > > behind the wizard could do it for me. > > > > > > Has anyone ever done this? > > > > > > John W. Colby > > > The DIS Database Guy > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > > > > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Tue Nov 23 10:55:51 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 23 Nov 2004 09:55:51 -0700 Subject: [AccessD] The form just won't save. Message-ID: <16260-2200411223165551812@christopherhawkins.com> I have an Access 2000 mdb file. Within this file is a particular form. Whenever I try to save changes to the form's module, it just won't save. It hourglasses on me forever and eventually returns a 'Not Responding' message. I have decompiled it. I have recompiled it. I have compacted it. I have repaired it. I do not know what else to do. Plus I'm working with a fever. Ack. Thoughts? Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From Gustav at cactus.dk Tue Nov 23 11:08:13 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 18:08:13 +0100 Subject: [AccessD] The form just won't save. Message-ID: Hi Christopher Create a new database and import all objects from the other. /gustav From Lambert.Heenan at AIG.com Tue Nov 23 11:23:46 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 23 Nov 2004 12:23:46 -0500 Subject: [AccessD] The form just won't save. Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A283D@xlivmbx21.aig.com> Sounds like you need to import all the objects in the db to a fresh, empty mdb file. I'd start by importing everything but the problem form (and also leave behind the MSYS* tables, Access will build them afresh). Then try importing the problem one. I guess that it will refuse to import as it has become corrupted. You will then have to rebuild it from scratch or import it from a backup copy of the application. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher > Hawkins > Sent: Tuesday, November 23, 2004 11:56 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] The form just won't save. > > I have an Access 2000 mdb file. Within this file is a particular > form. Whenever I try to save changes to the form's module, it just > won't save. It hourglasses on me forever and eventually returns a > 'Not Responding' message. > > I have decompiled it. I have recompiled it. I have compacted it. I > have repaired it. > > I do not know what else to do. > > Plus I'm working with a fever. Ack. > > Thoughts? > Respectfully, > > Christopher Hawkins > Software Developer > (559) 687-7591 > http://www.christopherhawkins.com > > From cyx5 at cdc.gov Tue Nov 23 09:46:24 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 23 Nov 2004 10:46:24 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? From max at sherman.org.uk Tue Nov 23 11:52:35 2004 From: max at sherman.org.uk (Max) Date: Tue, 23 Nov 2004 17:52:35 -0000 Subject: [AccessD] The form just won't save. In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A283D@xlivmbx21.aig.com> Message-ID: <20041123175231.FCSM1092.aamta05-winn.mailhost.ntl.com@server> Hi Chris, What sometimes works is to save the form as a copy. Select the form in the db window (right-click) and then copy it to a new form (right-click again and give it a new name). The new one often gets copied over without the offending corrupted byte! Also, as Lambert says, import it into a new DB, but BEFORE you copy the offending form, save a backup of what you have copied so far. You could also try my program which copies all selected objects as text and you can then import them from text into a new DB (forms, reports, queries, modules, etc). You will find it on Rogers site. It is called EATBloatV2.mdb (Extract as Text - defeats DB bloat). Max Sherman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: 23 November 2004 17:24 To: 'Access Developers discussion and problem solving'; 'Christopher Hawkins' Subject: RE: [AccessD] The form just won't save. Sounds like you need to import all the objects in the db to a fresh, empty mdb file. I'd start by importing everything but the problem form (and also leave behind the MSYS* tables, Access will build them afresh). Then try importing the problem one. I guess that it will refuse to import as it has become corrupted. You will then have to rebuild it from scratch or import it from a backup copy of the application. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher > Hawkins > Sent: Tuesday, November 23, 2004 11:56 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] The form just won't save. > > I have an Access 2000 mdb file. Within this file is a particular > form. Whenever I try to save changes to the form's module, it just > won't save. It hourglasses on me forever and eventually returns a > 'Not Responding' message. > > I have decompiled it. I have recompiled it. I have compacted it. I > have repaired it. > > I do not know what else to do. > > Plus I'm working with a fever. Ack. > > Thoughts? > Respectfully, > > Christopher Hawkins > Software Developer > (559) 687-7591 > http://www.christopherhawkins.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.798 / Virus Database: 542 - Release Date: 18/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.798 / Virus Database: 542 - Release Date: 18/11/2004 From jwcolby at colbyconsulting.com Tue Nov 23 12:03:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 13:03:33 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: Message-ID: <006901c4d186$bf59c210$e8dafea9@ColbyM6805> Today? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Nov 23 12:59:01 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 23 Nov 2004 13:59:01 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B75@TTNEXCHCL2.hshhp.com> I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 Nov 23 14:10:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 23 Nov 2004 14:10:56 -0600 Subject: [AccessD] Re: #Num! In-Reply-To: <200411230925.iAN9PsL01590@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041123140947.014180d0@pop3.highstream.net> John, I think it is caused by text in a column that Access is interpreting as a number. So the fault is in the spreadsheet data, not Access. Robert At 03:25 AM 11/23/2004 -0600, you wrote: >Date: Mon, 22 Nov 2004 13:23:39 -0500 >From: "Colby, John" >Subject: [AccessD] #Num! >To: "'AccessD at DatabaseAdvisors.com'" >Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A8 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >Does anyone know how to convert #Num! in a linked spreadsheet to a null or >something useable in Access? > >John W. Colby >The DIS Database Guy From mikedorism at adelphia.net Tue Nov 23 14:26:07 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 23 Nov 2004 15:26:07 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74486B75@TTNEXCHCL2.hshhp.com> Message-ID: <000201c4d19a$ad3f92d0$0b08a845@hargrove.internal> I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 rl_stewart at highstream.net Tue Nov 23 14:29:10 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 23 Nov 2004 14:29:10 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411230925.iAN9PsL01590@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> Or as I have heard in Russia... Pamoika (which is the fragrant liquid you see running from a dumpster) Arthur, I think your choice of examples could have been a bit less expressive of the vulgar. Robert At 03:25 AM 11/23/2004 -0600, you wrote: >Date: Mon, 22 Nov 2004 18:18:16 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A273B8.7010207 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >1. There are a pair of classic sentences that are used frequently to >derail machine translators: >a) Bill sent me a bill which I forwarded to Bill. >b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. >(This one I capitalized to help you through it, although it still takes >some work. To save you the trouble.... there is an English verb, to >buffalo. It means to baffle, or perhaps to bullshit. As in, when the >client asked question X, I buffaloed her. A particular variation on said >action is known as the Buffalo buffalo. This is a version particular to >the city -- as opposed to say the New Orleans buffalo. So, certain >buffalo who happen to reside in Buffalo do the Buffalo buffalo to other >buffalo who also happen to reside in Buffalo.) From Jdemarco at hudsonhealthplan.org Tue Nov 23 14:38:55 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 23 Nov 2004 15:38:55 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B7C@TTNEXCHCL2.hshhp.com> This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 mikedorism at adelphia.net Tue Nov 23 15:30:13 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 23 Nov 2004 16:30:13 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74486B7C@TTNEXCHCL2.hshhp.com> Message-ID: <000301c4d1a3$9faac5a0$0b08a845@hargrove.internal> Yup. They did one in Baltimore Nov 1-3. It will be back in Vegas next year. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 Tue Nov 23 16:29:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Nov 2004 14:29:00 -0800 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version References: Message-ID: <41A3B9AC.3010608@shaw.ca> Couple of quickie things to check was the program installed from a WinXP adminstrator account. Someone may run on a daily basis from a lesser permissioned account to avoid viruses. Win XP SP2 makes a lot of security permission changes. You might try re-installing with US English language selection set from the control panel then resetting to UK English. I know there were some problems with Win 2003 Server and Access runtimes. Nicholson, Karen wrote: >I create run time versions of a program for manufacturers all over the >globe. Mr. UK (he has a GREAT accent) is able to run the runtime >created in Access 2000 on his XP Professional 2002 SP1 installed that >has Access installed. > >The other unit has XP home, SP2, with no Access. The executable starts >and stops after five seconds. Is there an issue with home, SP2, >whatever, running runtimes? > >I am a bother today, aren't I? > > > > > -- Marty Connelly Victoria, B.C. Canada From stephen at bondsoftware.co.nz Tue Nov 23 17:57:20 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 12:57:20 +1300 Subject: [AccessD] OT Message-ID: <70F3D727890C784291D8433E9C418F29088979@server.bondsoftware.co.nz> Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From artful at rogers.com Tue Nov 23 18:04:18 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 23 Nov 2004 19:04:18 -0500 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> References: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> Message-ID: <41A3D002.7080900@rogers.com> No offence intended. It just happens to be one of the most vivid examples of the elasticity of English. For a less vulgar example, consider the word "cool" or as the young would have it, "kewl". You may well be right; I should perhaps have used that word instead. But my intent was not vulgarity but rather illumination on the elasticity of English. Apologies if I offended. Robert L. Stewart wrote: > Or as I have heard in Russia... Pamoika (which is the fragrant > liquid you see running from a dumpster) Arthur, I think your > choice of examples could have been a bit less expressive of > the vulgar. > > Robert > > At 03:25 AM 11/23/2004 -0600, you wrote: > >> Date: Mon, 22 Nov 2004 18:18:16 -0500 >> From: Arthur Fuller >> Subject: Re: [AccessD] Selecting Languages - English or Spanish or >> Something >> To: Access Developers discussion and problem solving >> >> Message-ID: <41A273B8.7010207 at rogers.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> 1. There are a pair of classic sentences that are used frequently to >> derail machine translators: >> a) Bill sent me a bill which I forwarded to Bill. >> b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. >> (This one I capitalized to help you through it, although it still takes >> some work. To save you the trouble.... there is an English verb, to >> buffalo. It means to baffle, or perhaps to bullshit. As in, when the >> client asked question X, I buffaloed her. A particular variation on said >> action is known as the Buffalo buffalo. This is a version particular to >> the city -- as opposed to say the New Orleans buffalo. So, certain >> buffalo who happen to reside in Buffalo do the Buffalo buffalo to other >> buffalo who also happen to reside in Buffalo.) > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From cfoust at infostatsystems.com Tue Nov 23 18:36:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 23 Nov 2004 16:36:48 -0800 Subject: [AccessD] OT Message-ID: LOL Boy are you in for weather shock, not to mention culture shock! Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Tuesday, November 23, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From accessd at shaw.ca Tue Nov 23 18:54:58 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 16:54:58 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <41A273B8.7010207@rogers.com> Message-ID: Arthur: Now that was a good read (rant) ;-). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Monday, November 22, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Selecting Languages - English or Spanish or Something 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur Dan Waters wrote: >I did some internet research and found that there apparently isn't >anything that does 'perfect' translations - that is left to actual >people! It did seem that there were some not inexpensive software >solutions that would have been able to do a pretty good job. > >Translation on a PC is called Machine Translation. Machine translation >can take a document and take a 'first cut' at doing a translation. Then >someone who knows both languages can finish it off in less time. I'm >going to recommend this approach to my client. > >This first cut can be done from Word. > Open a Word document and highlight some text. > Select Tools | Language | Translate. > A Translate pane will appear at the right. > At the bottom see 'Translate via the Web'. > Select the language translation you want. > Push Go. > A web site will open with the Machine translation of the text > you highlighted. > >I tried to use the Look up in Dictionary feature, but that always came >back with No Suggestions. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Monday, November 22, 2004 7:04 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >No not on the fly. Every report is saved twice (once for English, >another for Spanish). This was all set up before I got here but I think >the difference in the text sizes (lengths) between the languages was a >major reason. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >Sent: Friday, November 19, 2004 3:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Jim, > >Are your reports partially translated on the fly? If not it seems that >you would need to have your original text information recorded in two >separate places - one for each language? > >If on the fly how is this done? > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >We have two of everything here at this point. Pick the language, print >the correct version report. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Nov 23 19:14:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 17:14:38 -0800 Subject: [Accessd] OT In-Reply-To: <70F3D727890C784291D8433E9C418F29088979@server.bondsoftware.co.nz> Message-ID: Hi Steven: If you decide to wander North a bit to Lotus land, the Vancouver Island, Victoria, you can always drop in on myself and Marty Connelly. (He is a bit of a party animal but that is just a unsubstantiated rumor.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From jwcolby at colbyconsulting.com Tue Nov 23 20:23:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 21:23:38 -0500 Subject: [AccessD] properties Message-ID: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From stephen at bondsoftware.co.nz Tue Nov 23 21:28:22 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 16:28:22 +1300 Subject: [AccessD] OT Message-ID: <70F3D727890C784291D8433E9C418F2908897A@server.bondsoftware.co.nz> I should 'fess up, my wife and I were married there 34 years ago, and some of her family is still there and we enjoy seeing them no matter the weather. But hey, mr taxman, this is a business trip, right? > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, 24 November 2004 1:37 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT > > > LOL Boy are you in for weather shock, not to mention culture shock! > > Charlotte Foust > > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas > and experiences. > > Stephen Bond > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From william.thompson1 at att.net Tue Nov 23 21:33:02 2004 From: william.thompson1 at att.net (William Thompson) Date: Tue, 23 Nov 2004 19:33:02 -0800 Subject: [AccessD] slightly off the topic of Excel to csv #Num! In-Reply-To: <004c01c4d165$d425ddd0$e8dafea9@ColbyM6805> Message-ID: <200411240332.iAO3WuL01551@databaseadvisors.com> This is not exactly what you specified, but it looked interesting: http://support.microsoft.com/kb/247412/EN-US/ Dim rs As ADODB... ... sData = rs.GetString(adClipString, , vbTab, vbCr, vbNullString) Open "C:\Test.txt" For Output As #1 Print #1, sData Close #1 ... Shell "C:\Program Files\Microsoft Office\Office\Excel.exe " & _ Chr(34) & "C:\Test.txt" & Chr(34), vbMaximizedFocus A possible way to re-engineer this - with potential for improvement - would be to create a querytable from a recordset, then write out a 'mirror' csv file. I've been looking at this type of thing for 'snapshots' of data that is constantly being refreshed, or to make dynamic data static. Bill -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 stephen at bondsoftware.co.nz Tue Nov 23 21:31:33 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 16:31:33 +1300 Subject: [Accessd] OT Message-ID: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. Stephen Bond > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, 24 November 2004 2:15 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [Accessd] OT > > > Hi Steven: > > If you decide to wander North a bit to Lotus land, the > Vancouver Island, > Victoria, you can always drop in on myself and Marty > Connelly. (He is a bit > of a party animal but that is just a unsubstantiated rumor.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas and > experiences. > > Stephen Bond > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Nov 23 23:55:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Nov 2004 21:55:30 -0800 Subject: [Accessd] OT References: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> Message-ID: <41A42252.4010206@shaw.ca> Well there is a 9 AM and 3PM Coho ferry twice a day from Port Angeles, this time of year it can be blown back into port when crossing the strait. I do hang out with the Women's Rugby club in Victoria, they make me wear one of their teeshirts that reads "Trample the wounded. Hurdle the dead" The U Vic faculty club does have a nice little pond with frogs and turtles jumping around in it tho. Stephen Bond wrote: >I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. > >Stephen Bond > > > >>-----Original Message----- >>From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] >>Sent: Wednesday, 24 November 2004 2:15 p.m. >>To: Access Developers discussion and problem solving >>Subject: RE: [Accessd] OT >> >> >>Hi Steven: >> >>If you decide to wander North a bit to Lotus land, the >>Vancouver Island, >>Victoria, you can always drop in on myself and Marty >>Connelly. (He is a bit >>of a party animal but that is just a unsubstantiated rumor.) >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond >>Sent: Tuesday, November 23, 2004 3:57 PM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] OT >> >> >>Any listers in Central Oregon? Am deserting the antipodean summer and >>heading that way in mid-December for a month R_and_R, love to >>swap ideas and >>experiences. >> >>Stephen Bond >> >>-- >>_______________________________________________ >>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 accessd at shaw.ca Wed Nov 24 00:26:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:07 -0800 Subject: [AccessD] OT In-Reply-To: <70F3D727890C784291D8433E9C418F2908897A@server.bondsoftware.co.nz> Message-ID: Congratulations Stephen: We just celebrated our thirtieth this year...but 34; I am impressed. Between you and me and other members of the list, enjoy your 'business' trip. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 7:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT I should 'fess up, my wife and I were married there 34 years ago, and some of her family is still there and we enjoy seeing them no matter the weather. But hey, mr taxman, this is a business trip, right? > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, 24 November 2004 1:37 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT > > > LOL Boy are you in for weather shock, not to mention culture shock! > > Charlotte Foust > > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas > and experiences. > > Stephen Bond > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 00:26:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:08 -0800 Subject: [AccessD] properties In-Reply-To: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: Hi John: I hope you are wrong and there is some other reason... If not what version!!? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Nov 24 00:26:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:08 -0800 Subject: [Accessd] OT In-Reply-To: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> Message-ID: See you....maybe. I will send you some details off-line, just in case. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 7:32 PM To: Access Developers discussion and problem solving Subject: RE: [Accessd] OT I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. Stephen Bond > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, 24 November 2004 2:15 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [Accessd] OT > > > Hi Steven: > > If you decide to wander North a bit to Lotus land, the > Vancouver Island, > Victoria, you can always drop in on myself and Marty > Connelly. (He is a bit > of a party animal but that is just a unsubstantiated rumor.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas and > experiences. > > Stephen Bond > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 24 03:44:56 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 24 Nov 2004 10:44:56 +0100 Subject: [AccessD] #Num! Message-ID: Hi John In case you haven't found out yet, here is: wkb.SaveAs FileName:="d:\temp\test.csv", FileFormat:=xlCSV, CreateBackup:=False /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 15:07:48 >>> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). From Jdemarco at hudsonhealthplan.org Wed Nov 24 06:45:57 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 24 Nov 2004 07:45:57 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B82@TTNEXCHCL2.hshhp.com> I was hoping they'd move it out of Vegas next year. It's been there twice in row now. I wonder if the Baltimore agenda was as rich as the other. Maybe it's still up their site. Thanks, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 4:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version Yup. They did one in Baltimore Nov 1-3. It will be back in Vegas next year. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 *********************************************************************************** "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 Wed Nov 24 07:56:53 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 24 Nov 2004 07:56:53 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411241251.iAOCp8L16300@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your > > choice of examples could have been a bit less expressive of > > the vulgar. > > > > Robert From JHewson at karta.com Wed Nov 24 08:03:58 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 24 Nov 2004 08:03:58 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D0A@karta-exc-int.Karta.com> Or their, there and they're. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Wednesday, November 24, 2004 7:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your > > choice of examples could have been a bit less expressive of > > the vulgar. > > > > Robert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Nov 24 08:07:54 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 24 Nov 2004 08:07:54 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <19284598.1101263179516.JavaMail.root@sniper17.securence.com> Message-ID: <000c01c4d22e$fe9f5540$de1811d8@danwaters> John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Wed Nov 24 08:15:34 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 24 Nov 2004 06:15:34 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041123130540.52003.qmail@web61105.mail.yahoo.com> Message-ID: <20041124141534.33810.qmail@web61105.mail.yahoo.com> Can anybody please help me with this one? Tips/links/articles any thing will do!! Regrds, sd S D wrote: Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. From andy at minstersystems.co.uk Wed Nov 24 07:18:57 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 24 Nov 2004 14:18:57 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124141854.2A38C251E75@smtp.nildram.co.uk> Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 dwaters at usinternet.com Wed Nov 24 08:31:13 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 24 Nov 2004 08:31:13 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <7198649.1101306110365.JavaMail.root@sniper18.securence.com> Message-ID: <000d01c4d232$40363a70$de1811d8@danwaters> Andy, We talked about how flexible the English language is during the 'English or Spanish or Something' discussion. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 7:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 07:44:39 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 24 Nov 2004 14:44:39 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124144436.197CE25D223@smtp.nildram.co.uk> This isn't flexible, this is broken (snapped, bust, fractured, ....) -- 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] Remoting In (was: properties) Date: 24/11/04 14:34 > > Andy, > > We talked about how flexible the English language is during the 'English > or Spanish or Something' discussion. > > <grin> > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, November 24, 2004 7:19 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Remoting In (was: properties) > > Jeez what's this new verb "to remote in"? How does that decline? I > remote > in, he remoted in, he/she/it will have been remoted in.... What's wromg > with > using real words? ....grumble, grumble, grumble. Right, I'm going to > keyboard out of this email. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Remoting In (was: properties) > Date: 24/11/04 14:10 > > > > > John, > > > > What mechanism or method do you use to remote in to a client's site? > > I'm struggling with this now. > > > > Does anyone have recommendations or warnings about what works and what > > doesn't? > > > > Thanks! > > Dan Waters > > ProMation Systems > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > > Sent: Tuesday, November 23, 2004 8:24 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] properties > > > > I had a strange occurrence last night and I just wanted to check the > > list to > > see if anyone has ever seen such a thing. > > > > Windows XP / Office XP, I remoted in to a client site and started work > > on a > > FE. At some point I tried to compact / repair the db and got the old > > error > > message that &quot;the database could be renamed&quot; and the copy > was > saved to > > db2. > > I saved the original and then renamed db2 and continued work. I did > NOT > > test editing / adding records etc. The client was asked to test the > > changes > > and came back very upset that two entire tabs of the form were > &quot;locked&quot;. > > I > > remoted in tonight and started poking around and sure enough all the > > subforms (controls) on those two tabs have the enabled property set to > > no > > which prevents even setting the focus into the subform. Further all > of > > the > > &quot;allow edits/deletions/additions&quot; are set to no for the > actual > subforms > > themselves. > > > > My conjecture is that something happened at the point Access tried to > > close > > the database to do the compact/repair or when it attempted to delete > the > > original and rename the compacted copy. Given the damage I've found > so > > far > > I certainly don't trust the copy to continue work on. Who knows what > > else > > has been changed. > > > > Has anyone ever seen such a thing happen? I never have, but there are > > so > > many properties changed that I have to think that Access somehow set > > these > > properties at some point. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Subscriptions at servicexp.com Wed Nov 24 08:53:55 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 24 Nov 2004 09:53:55 -0500 Subject: [AccessD] properties In-Reply-To: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: Hello John, Does your code in anyway manipulate those properties during runtime, and if so, does your code check for the property state at the forms start up? I say this because when your move to design mode, and make changes and save the form, the new property settings have a habit of getting saved also. I run into this situation often. Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 9:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Nov 24 08:55:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 24 Nov 2004 09:55:45 -0500 Subject: [AccessD] Remoting In (was: properties) Message-ID: Yep...Google it up;))))) Mark -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 9:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) Andy, We talked about how flexible the English language is during the 'English or Spanish or Something' discussion. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 7:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 From Developer at UltraDNT.com Wed Nov 24 09:34:39 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 24 Nov 2004 10:34:39 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: <002401c4d23b$1d02c240$0200a8c0@COA3> Good old pcAnywhere does alright via TCPIP over broadband, fast enough to do design work on the host (need a copy on both PC's however). GoToMyPC is my other choice, works on any PC with an Internet connection; good for file tranfers that are too large for email servers, but a bit slow for development but its outstanding to "dial home" to check email from anywhere. Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 GregSmith at starband.net Wed Nov 24 09:41:45 2004 From: GregSmith at starband.net (Greg Smith) Date: Wed, 24 Nov 2004 09:41:45 -0600 (CST) Subject: [AccessD] properties In-Reply-To: References: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: <1368.65.118.249.206.1101310905.squirrel@cetus.email.starband.net> John: I've had this happen before, with A97, A2k and A2003. I thought originally it was just A97...and I still have no clue as to why it does it. Just occasionally it won't replace the original...the computer is having a "bit phart" or something. Any time that it happens, I throw out both the original I was working on (hopefully backed up... before the compact/repair) and what it generated and start the process over with a fresh copy. I close out of Access (whatever version I was using at the time...) and sometimes, reboot the computer I was on before trying it again. By doing this, I've not run into what you've described because I've not kept the 'questionable' copy. And that's exactly why I do all of this so I don't have the app in some condition that's questionable. As for 'remoting in', ummm, hmmm, "I use RDC to connect ..."...:) that way I don't add any new words to the English language...and it doesn't NEED any new ones...LOL. Greg Smith gregsmith at starband.net > Hello John, > Does your code in anyway manipulate those properties during runtime, > and if > so, does your code check for the property state at the forms start up? > > I say this because when your move to design mode, and make changes and > save > the form, the new property settings have a habit of getting saved also. > > I run into this situation often. > > Robert Gracie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 9:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error message that "the database could be renamed" and the copy was > saved to db2. I saved the original and then renamed db2 and continued > work. I did NOT test editing / adding records etc. The client was > asked to test the changes and came back very upset that two entire tabs > of the form were "locked". I remoted in tonight and started poking > around and sure enough all the subforms (controls) on those two tabs > have the enabled property set to no which prevents even setting the > focus into the subform. Further all of the "allow > edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far I certainly don't trust the copy to continue work on. > Who knows what else has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow set > these properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:42:06 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:42:06 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <20041124141854.2A38C251E75@smtp.nildram.co.uk> Message-ID: <000801c4d23c$2bd226c0$e8dafea9@ColbyM6805> Lol. Following your logic we would have NO words because someone had to make up a word to fit a noun / verb. There is nothing wrong with using "Remote in" to replace a paragraph describing the process in excruciating detail so that the person understands that you remoted in. ;-) I remoted in Or I used remote desktop to connect to my client's computer... I think I will remote in thanks! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 8:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did > NOT test editing / adding records etc. The client was asked to test > the changes and came back very upset that two entire tabs of the form > were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no which prevents even setting the focus into the subform. Further > all of the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow > set these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:43:28 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:43:28 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: <000901c4d23c$5cca2980$e8dafea9@ColbyM6805> I use the remote desktop built in to windows XP. It's really pretty simple, the biggest issue is to insure that it is started as a service on the target desktop, then that ports are opened on the target router to allow them in. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:44:06 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:44:06 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <000a01c4d23c$6e774f00$e8dafea9@ColbyM6805> Cool, thanks! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, November 24, 2004 4:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John In case you haven't found out yet, here is: wkb.SaveAs FileName:="d:\temp\test.csv", FileFormat:=xlCSV, CreateBackup:=False /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 15:07:48 >>> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmoss111 at bellsouth.net Wed Nov 24 09:48:30 2004 From: jmoss111 at bellsouth.net (jmoss111 at bellsouth.net) Date: Wed, 24 Nov 2004 10:48:30 -0500 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124154829.DTNE1980.imf16aec.mail.bellsouth.net@mail.bellsouth.net> RAdmin is the fastest remote product that I've used. And PlanetDNS is similar to GoTopMyPC but maybe a little faster and much cheaper. JM > > From: "Steve Conklin \(Developer at UltraDNT\)" > Date: 2004/11/24 Wed AM 10:34:39 EST > To: "'Access Developers discussion and problem solving'" > > Subject: RE: [AccessD] Remoting In (was: properties) > > Good old pcAnywhere does alright via TCPIP over broadband, fast enough > to do design work on the host (need a copy on both PC's however). > GoToMyPC is my other choice, works on any PC with an Internet > connection; good for file tranfers that are too large for email servers, > but a bit slow for development but its outstanding to "dial home" to > check email from anywhere. > > Hth > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, November 24, 2004 9:08 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Remoting In (was: properties) > > > John, > > What mechanism or method do you use to remote in to a client's site? I'm > struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error message that "the database could be renamed" and the copy was > saved to db2. I saved the original and then renamed db2 and continued > work. I did NOT test editing / adding records etc. The client was > asked to test the changes and came back very upset that two entire tabs > of the form were "locked". I remoted in tonight and started poking > around and sure enough all the subforms (controls) on those two tabs > have the enabled property set to no which prevents even setting the > focus into the subform. Further all of the "allow > edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far I certainly don't trust the copy to continue work on. > Who knows what else has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow set > these properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 24 09:50:43 2004 From: john at winhaven.net (John Bartow) Date: Wed, 24 Nov 2004 09:50:43 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: Gustav just pointed me to NetOP (http://www.crossteccorp.com/) which is really fast. Just bought a license. Thanks Again Gustav! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 24 09:56:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 Nov 2004 09:56:53 -0600 Subject: [AccessD] Remoting In (was: properties) Message-ID: <123701F54509D9119A4F00D0B747349016D0CC@main2.marlow.com> I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 24 10:33:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 24 Nov 2004 17:33:31 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: OK John, you are welcome. The nice thing with NetOp is that it can find its way through any corparate firewall and security system - a drawing at their site illustrates this fine. /gustav >>> john at winhaven.net 24-11-2004 16:50:43 >>> Gustav just pointed me to NetOP (http://www.crossteccorp.com/) which is really fast. Just bought a license. Thanks Again Gustav! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems From cyx5 at cdc.gov Wed Nov 24 11:27:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 24 Nov 2004 12:27:12 -0500 Subject: [AccessD] I Have Lost my Property!! Message-ID: Name, Modified, Created, Type.... Where did my properties column go in database design? XP version. I am beginning to not like XP. Any suggestions? From john at winhaven.net Wed Nov 24 11:48:23 2004 From: john at winhaven.net (John Bartow) Date: Wed, 24 Nov 2004 11:48:23 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <123701F54509D9119A4F00D0B747349016D0CC@main2.marlow.com> Message-ID: Drew: Do you have any issues with the firewall/gateway/proxy server? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, November 24, 2004 9:57 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remoting In (was: properties) I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 12:22:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 24 Nov 2004 10:22:16 -0800 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000901c4d23c$5cca2980$e8dafea9@ColbyM6805> Message-ID: XP Remote in needs port 3389 open. Remotely yours Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, November 24, 2004 7:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) I use the remote desktop built in to windows XP. It's really pretty simple, the biggest issue is to insure that it is started as a service on the target desktop, then that ports are opened on the target router to allow them in. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Nov 24 12:41:21 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 24 Nov 2004 13:41:21 -0500 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> References: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> Message-ID: <41A4D5D1.4020508@rogers.com> That is no indication of the elasticity of language; it's simply a case of homonyms. Robert L. Stewart wrote: > I think the words to, too, and two would also have fit. > > At 06:51 AM 11/24/2004 -0600, you wrote: > >> Date: Tue, 23 Nov 2004 19:04:18 -0500 >> From: Arthur Fuller >> Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or >> Something >> To: Access Developers discussion and problem solving >> >> Message-ID: <41A3D002.7080900 at rogers.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> No offence intended. It just happens to be one of the most vivid >> examples of the elasticity of English. For a less vulgar example, >> consider the word "cool" or as the young would have it, "kewl". You may >> well be right; I should perhaps have used that word instead. But my >> intent was not vulgarity but rather illumination on the elasticity of >> English. Apologies if I offended. >> >> Robert L. Stewart wrote: >> >> > Or as I have heard in Russia... Pamoika (which is the fragrant >> > liquid you see running from a dumpster) Arthur, I think your >> > choice of examples could have been a bit less expressive of >> > the vulgar. >> > >> > Robert > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From Lambert.Heenan at AIG.com Wed Nov 24 12:53:32 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 24 Nov 2004 13:53:32 -0500 Subject: [AccessD] I Have Lost my Property!! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A285A@xlivmbx21.aig.com> Try resizing the Name column by dragging the vertical line between columns. It should then reveal the hidden 'Description' (not 'Properties') column. You'll need to drag from the right side of the line, not the left. BTW, exactly the same thing hastens in Access 97, so don't blame XP :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Wednesday, November 24, 2004 12:27 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I Have Lost my Property!! > > Name, Modified, Created, Type.... Where did my properties column go in > database design? XP version. I am beginning to not like XP. Any > suggestions? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Nov 24 13:06:44 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 Nov 2004 13:06:44 -0600 Subject: [AccessD] Remoting In (was: properties) Message-ID: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> No. Remote Admin can act as it's own router (for other Remote Admin sessions). So you just have to make one computer with the Remote Admin Server on it 'visible' to the internet (on whatever port you use, which is customizable). Then if you want to connect to an internal computer, you 'route' through that server to get to anything in house. What I like about Remote Admin is that it is very lightweight, extremely fast (works very well even over a dialup), and it does use NT Security if you want it too. They are working on version 3 (which is in beta). It has a lot of features that I have wanted, which will really make it the absolute top grade Remote software out there. Drew -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Wednesday, November 24, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Drew: Do you have any issues with the firewall/gateway/proxy server? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, November 24, 2004 9:57 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remoting In (was: properties) I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Wed Nov 24 15:01:44 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 24 Nov 2004 13:01:44 -0800 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> Message-ID: for customer support, I like using Ultr at Vnc Cost: free I have the end user install, and then send me their connection by right clicking the icon and click on 'add new client' then they just type my URL and BOOM! it's all done... no need for pwds or fidling w/ Company Networks. it IS fast over DSL 128k up. the only problem is that you must ask them to install the software themselves. but since you don't have to ask for any changes to their firewall it works so easily :) sorta like a gotomypc except they send you their screen. plus w/ Ultr at VNC you can FTP files over when you need to and it sports a chat client... also very nice. nothing like IM, but hey it works. On Wed, 24 Nov 2004 13:06:44 -0600, dwutka at marlow.com wrote: > No. Remote Admin can act as it's own router (for other Remote Admin > sessions). So you just have to make one computer with the Remote Admin > Server on it 'visible' to the internet (on whatever port you use, which is > customizable). Then if you want to connect to an internal computer, you > 'route' through that server to get to anything in house. > > What I like about Remote Admin is that it is very lightweight, extremely > fast (works very well even over a dialup), and it does use NT Security if > you want it too. > > They are working on version 3 (which is in beta). It has a lot of features > that I have wanted, which will really make it the absolute top grade Remote > software out there. > > Drew > > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, November 24, 2004 11:48 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Remoting In (was: properties) > > Drew: > Do you have any issues with the firewall/gateway/proxy server? > > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > DWUTKA at marlow.com > Sent: Wednesday, November 24, 2004 9:57 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Remoting In (was: properties) > > I recommend Remote Administrator http://www.famatech.com > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Wednesday, November 24, 2004 8:08 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Remoting In (was: properties) > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From roz.clarke at donnslaw.co.uk Thu Nov 25 02:50:05 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 25 Nov 2004 08:50:05 -0000 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Som ething Message-ID: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Anything that's spelt differently is no problem for text translation, only aural translation. So I don't think those *would* work! Right (correct) and right (hand) and free (at liberty) and free (gratuit) are the only ones I can think of just now. Roz -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: 24 November 2004 14:04 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: Selecting Languages - English or Spanish or Something Or their, there and they're. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Wednesday, November 24, 2004 7:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your choice > > of examples could have been a bit less expressive of the vulgar. > > > > Robert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From artful at rogers.com Sat Nov 27 19:18:36 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 27 Nov 2004 20:18:36 -0500 Subject: [AccessD] Test In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Message-ID: <41A9276C.7080103@rogers.com> Just checking. Dead quiet around here this weekend. Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 From jwcolby at colbyconsulting.com Sat Nov 27 19:34:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 27 Nov 2004 20:34:26 -0500 Subject: [AccessD] Test In-Reply-To: <41A9276C.7080103@rogers.com> Message-ID: <000201c4d4ea$6911da70$e8dafea9@ColbyM6805> 'Deed it is! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, November 27, 2004 8:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking. Dead quiet around here this weekend. Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 27 19:41:17 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 17:41:17 -0800 Subject: [AccessD] Switchboards Message-ID: <001201c4d4eb$5d83fa70$6501a8c0@delllaptop> I think it was this list someone asked about more robust switchboards. Take a look here: http://www.peterssoftware.com/abs.htm JOE HECHT LOS ANGELES CA jmhla at earthlink.net From EricGoetz at egisystems.com Sat Nov 27 20:04:52 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Sat, 27 Nov 2004 18:04:52 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EB7@servera22.doma.ops> Hi, I thought I'd incorporate a little XML in transferring data from an Access 2003 mdb to an Excel spreadsheet. The Excel XML List looks like a useful feature. The trouble is, I can't get Access to output the XML. I'm running Access 2003 as part of a complete install of Office 2003 Enterprise Edition with SP1. I've tried this on two machines: XPProSP1a and XPProSP2. I've wasted my day isolating a test case, and here it is... Test A, make sure you can do a simple export to XML. 1. Take a fresh copy of Northwind.mdb 2. Right click on the query called "Alphabetical List of Products" and select "Export..." 3. Use the combobox "Save as type:" to select XML. 4. Click "Export" 5. Take the defaults on the subsequent dialogs. 6. Open the ".xml" file that you just created. 7. WOW! You now know how to use XML! Test B, actually try to use XML to do some work. 1. Open the query "Alphabetical List of Products" in design view. 2. Add criteria to "CatagoryName" of Like "S*", which gives SQL of: SELECT Products.*, Categories.CategoryName FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID WHERE (((Categories.CategoryName) Like "S*") AND (Products.Discontinued)=No)); 3. Run the query to see that you get the 12 products from the Seafood category. 4. Save the query. 5. Perform steps 2 through 6 from Test A. 6. I get a nearly empty file. HUH? I thought I knew how to use XML. How about you? It seems that just about any calculation in the WHERE clause kills ExportXML. I've tried it from VBA as well as the manual method employed above. Thanks, Eric From jmhla at earthlink.net Sat Nov 27 22:40:30 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 20:40:30 -0800 Subject: [AccessD] code problem Message-ID: <000701c4d504$675844c0$6501a8c0@delllaptop> I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Itsame2000 at sbcglobal.net Sat Nov 27 22:51:27 2004 From: Itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 22:51:27 -0600 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: I'm guessing you just want to enclose the NewData string in single quotes. Try this. strMsg = "'" & NewData & "' is not in the list. " -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 10:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 27 22:52:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 20:52:28 -0800 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... In-Reply-To: <41A25CA4.806@shaw.ca> Message-ID: <001501c4d506$1368c590$6501a8c0@delllaptop> Would turning off warnings in tools options help on this? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, November 22, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... Get their network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. -------------- or you could try this subroutine to execute on the runtime startup as toolbar menus are disabled by runtime methods maybe after checking this is set. I forget the order of execution. Access.Application.AutomationSecurity = 1 ' msoAutomationSecurityLow This sub activates the Macro -> Security submenu to open ' the Macro Security dialog window for the user who is using ' the runtime version of Access '03 instead of the retail version, ' which may need to have the default security level changed in ' order to run the code in the modules. 'This sub requires the Microsoft Office 11.0 Library reference http://www.access.qbuilt.com/html/vba.html#SetMacroSecLvl ----------------- or Sagekey has an Access 2003 MSI install script that avoids this but is $425. ---------------- or build your own security certicate but then you still have to install in users certificate pool There are some easier ways but not if it is a runtime Greg Smith wrote: >Hello everyone! > >Is there a way to shut off the security messages you get in Access 2003 in >a runtime version of an application? I have them shut off on my computer >and it works fine here, but when I have the customer install it on their >computer(s) (they don't have Access installed at all), they get the >messages on startup about unsafe expressions, etc. They can't shut them >off on their computers because the application doesn't allow access to >those areas (restricted menus). > >I was hoping to be able to do it internally (in vb), but that's probably >exactly what MS is trying to prevent with the security. So far they've >succeeded and I've failed...and turning warnings on/off doesn't do it >either. > >Of course, if they have Access installed, I'll tell them to just shut off >the macro security (set it to 'low')...which has it's inherent dangers, >but in most cases is ok. > >Any help or suggestions would be greatly appreciated. > >TIA! > >Greg Smith >gregsmith at starband.net > > > > -- 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 jwcolby at colbyconsulting.com Sat Nov 27 22:57:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 27 Nov 2004 23:57:07 -0500 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: <000301c4d506$b9593d90$e8dafea9@ColbyM6805> > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Nov 27 22:59:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 28 Nov 2004 14:59:57 +1000 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Som ething In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Message-ID: <41A9E7EC.13652.635CC48@lexacorp.com.pg> On 25 Nov 2004 at 8:50, Roz Clarke wrote: > Anything that's spelt differently is no problem for text translation, only > aural translation. So I don't think those *would* work! > > Right (correct) and right (hand) and free (at liberty) and free (gratuit) > are the only ones I can think of just now. > Take a look at the number of meanings for the words "set" and "run" in any good dictionary :-) As an aside, most difficult words to translate: http://news.bbc.co.uk/2/hi/africa/3830521.stm (I'm coming in on this a bit late. I've just spent the last week sailing from the Whitsundays in Australia to PNG and I'm just catching up on a weeks worth of email. A great experience. My first time to sail a square rigger - a 53ft brigantine.) -- Stuart From jmhla at earthlink.net Sat Nov 27 23:06:39 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:06:39 -0800 Subject: [AccessD] code problem In-Reply-To: <000301c4d506$b9593d90$e8dafea9@ColbyM6805> Message-ID: <001601c4d508$0dff0d10$6501a8c0@delllaptop> Thanks John, You have a family. What are you doing here on a Sat Night? ; ) JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 27, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sat Nov 27 23:14:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 28 Nov 2004 00:14:23 -0500 Subject: [AccessD] code problem In-Reply-To: <001601c4d508$0dff0d10$6501a8c0@delllaptop> Message-ID: <000401c4d509$22d31fa0$e8dafea9@ColbyM6805> Shopping for a laptop for my wife. 8~) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, November 28, 2004 12:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem Thanks John, You have a family. What are you doing here on a Sat Night? ; ) JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 27, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 27 23:27:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:27:20 -0800 Subject: [AccessD] Some more Sat night code help please. Message-ID: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From itsame2000 at sbcglobal.net Sat Nov 27 23:41:52 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:41:52 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Message-ID: <20041128054152.64502.qmail@web81504.mail.yahoo.com> A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Itsame2000 at sbcglobal.net Sat Nov 27 23:43:54 2004 From: Itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 23:43:54 -0600 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Message-ID: You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Sat Nov 27 23:47:49 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:47:49 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <20041128054152.64502.qmail@web81504.mail.yahoo.com> Message-ID: <20041128054749.23698.qmail@web81502.mail.yahoo.com> Sorry about the duplicate email. I didn't realize the first email left my outbox. Jeremy Toves wrote: A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 27 23:52:19 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:52:19 -0800 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: Message-ID: <002101c4d50e$6febf690$6501a8c0@delllaptop> Thanks Jeremy, that was it. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Some more Sat night code help please. You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 itsame2000 at sbcglobal.net Sat Nov 27 23:59:05 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:59:05 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <002101c4d50e$6febf690$6501a8c0@delllaptop> Message-ID: <20041128055905.36313.qmail@web81508.mail.yahoo.com> No problem. I'm glad I could help. Joe Hecht wrote: Thanks Jeremy, that was it. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Some more Sat night code help please. You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sun Nov 28 00:01:06 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 22:01:06 -0800 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <20041128054749.23698.qmail@web81502.mail.yahoo.com> Message-ID: <002201c4d50f$a9eddba0$6501a8c0@delllaptop> I wish that was my biggest problem. No worries. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some more Sat night code help please. Sorry about the duplicate email. I didn't realize the first email left my outbox. Jeremy Toves wrote: A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Sun Nov 28 08:54:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 28 Nov 2004 14:54:44 -0000 Subject: [AccessD] Re: Selecting Languages - English or Spanish orSom ething In-Reply-To: <41A9E7EC.13652.635CC48@lexacorp.com.pg> Message-ID: <000701c4d55a$33f629c0$b274d0d5@minster33c3r25> Wow sounds fantastic Stuart. My son was in the Whitsundays a month or so back. Said how beautiful it was. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 28 November 2004 05:00 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: Selecting Languages - English or > Spanish orSom ething > > > On 25 Nov 2004 at 8:50, Roz Clarke wrote: > > > Anything that's spelt differently is no problem for text > translation, > > only aural translation. So I don't think those *would* work! > > > > Right (correct) and right (hand) and free (at liberty) and free > > (gratuit) are the only ones I can think of just now. > > > > Take a look at the number of meanings for the words "set" and > "run" in any > good dictionary :-) > > As an aside, most difficult words to translate: > http://news.bbc.co.uk/2/hi/africa/3830521.stm > > (I'm coming in on this a bit late. I've just spent the last > week sailing > from the Whitsundays in Australia to PNG and I'm just > catching up on a > weeks worth of email. A great experience. My first time to > sail a square > rigger - a 53ft brigantine.) > > > > > > -- > Stuart > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd at shaw.ca Sun Nov 28 09:55:42 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 28 Nov 2004 07:55:42 -0800 Subject: OT [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <41A9E7EC.13652.635CC48@lexacorp.com.pg> Message-ID: Sounds awesome Stuart. Probably the most difficult word in the English language to translate is the word 'set'. This word has literally dozens of meanings. In one encyclopedia, the number of means attributed to this simple word fills 8 pages. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, November 27, 2004 9:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: Selecting Languages - English or Spanish or Something On 25 Nov 2004 at 8:50, Roz Clarke wrote: > Anything that's spelt differently is no problem for text translation, only > aural translation. So I don't think those *would* work! > > Right (correct) and right (hand) and free (at liberty) and free (gratuit) > are the only ones I can think of just now. > Take a look at the number of meanings for the words "set" and "run" in any good dictionary :-) As an aside, most difficult words to translate: http://news.bbc.co.uk/2/hi/africa/3830521.stm (I'm coming in on this a bit late. I've just spent the last week sailing from the Whitsundays in Australia to PNG and I'm just catching up on a weeks worth of email. A great experience. My first time to sail a square rigger - a 53ft brigantine.) -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Nov 28 12:29:50 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 28 Nov 2004 13:29:50 -0500 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> References: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: <41AA191E.1040309@rogers.com> Here is a function that might prove more useful. It is mostly compatible but has the advantage that you can use it everywhere, rather than tying it to one specific combo-box. It lets you specify the form to pop up, in case the add-to-list is complext (i.e. needs several required fields). Public Function aaNotInList _ ( _ NewData As String, _ Response As Integer, _ strForm As String, _ strTerm As String _ ) 'This function works just like the standard NotInList Sub, 'but adds two new parameters so you can specify the name of the 'form to pop up, and the generic name of the object (i.e., customer, agent, etc.) 'Note: this function requires the IsLoaded function, for which there are many sources. Dim mbrResponse As VbMsgBoxResult Dim strMsg As String strMsg = NewData & _ " is not on file. " & _ "Add a new " & strTerm & "?" mbrResponse = MsgBox(strMsg, _ vbYesNo + vbQuestion, "Unknown " & strTerm) Select Case mbrResponse Case vbYes DoCmd.OpenForm strForm, _ DataMode:=acFormAdd, _ WIndowMode:=acDialog, _ OpenArgs:=NewData ' Stop here and wait until the form ' goes away. If IsLoaded(strForm) Then Response = acDataErrAdded Debug.Print "Closing " & strForm DoCmd.Close acForm, strForm Else Response = acDataErrContinue End If Case vbNo Response = acDataErrContinue End Select End Function Arthur Joe Hecht wrote: >I am copying and will attribute the following code from KG et al ADH > > > >Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) > >Dim strMsg As String > >Dim rst As Recordset > >Dim db As Database > > > > > > strMsg = "'"& NewData &"'" is not in the list. " > > strMsg = strMsg & "Would you like to add them?" > > > >Does any one know why the first strMsg line is evaluating to to red ? > > > >Thanks > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 From jmhla at earthlink.net Sun Nov 28 18:23:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 28 Nov 2004 16:23:45 -0800 Subject: [AccessD] access data to word forms Message-ID: <000001c4d5a9$b33e2440$6501a8c0@delllaptop> I am building an application at home that will go to the client's server and two or three workstations. I am passing some data from Access to Word. The way I know how to do this, through Words data merge wizard hard codes the path as I understand things. Is there a way to have the path change to the server when I install this or will I need to rebuild the links? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From tom at rbbs.net.au Sun Nov 28 21:45:05 2004 From: tom at rbbs.net.au (Tom Keatley) Date: Mon, 29 Nov 2004 11:45:05 +0800 Subject: [AccessD] Divide A Table into 4 equal parts and append to a second table References: <000001c4d5a9$b33e2440$6501a8c0@delllaptop> Message-ID: <005701c4d5c5$d46c08a0$0300a8c0@TomDownload> Hi all... I have built a function that seems to achieve my aims although I feel it looks a little clunky... Its purpose is to reduce the data of 4 records in a table (NUMBERS) to a single record in another table (Table4up) with a view to using that data on a report 4 up. Can anyone suggest a better/more efficient way to achieve my aims? The code as is will not handle less than 9 records and I realise its not finished as there is no error checking or setting variables to NOTHING but wanted to get the groups feeling about the efficiency. This code will form the heart of a new project I am working on and I want it to be the best way possible to do it..... Function REnder4UPnew() Dim Db As Database, Rs As Recordset Dim RsAdd As Recordset Dim Nos As String Dim NoRecs As Long Dim FourUp As String Dim Counter As Integer Dim DElQry As String Dim ModNo As Integer DElQry = "DELETE Table4UP.* FROM Table4UP;" DoCmd.RunSQL DElQry Nos = "SELECT NUMBERS.* FROM NUMBERS ORDER BY NUMBERS.IDNO;" FourUp = "SELECT Table4UP.* FROM Table4UP;" Set Db = CurrentDb Set Rs = Db.OpenRecordset(Nos) Set RsAdd = Db.OpenRecordset(FourUp) With Rs .MoveFirst .MoveLast NoRecs = .RecordCount ModNo = NoRecs Mod 4 Select Case ModNo Case 0 NoRecs = Int(.RecordCount / 4) Case 1 NoRecs = Int(.RecordCount / 4) + 1 Case 2 NoRecs = Int(.RecordCount / 4) + 1 Case 3 NoRecs = Int(.RecordCount / 4) + 1 End Select Counter = 0 ....MoveFirst While Not .EOF Or .BOF Counter = Counter + 1 Select Case Counter Case 1 To NoRecs RsAdd.AddNew RsAdd!sequence = Counter RsAdd!Pos1 = ![idno] RsAdd.Update Case (NoRecs + 1) To (NoRecs * 2) If Counter = (NoRecs + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos2 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos2 = ![idno] RsAdd.Update RsAdd.MoveNext End If Case ((NoRecs * 2) + 1) To (NoRecs * 3) If Counter = ((NoRecs * 2) + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos3 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos3 = ![idno] RsAdd.Update RsAdd.MoveNext End If Case ((NoRecs * 3) + 1) To (NoRecs * 4) If Counter = ((NoRecs * 3) + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos4 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos4 = ![idno] RsAdd.Update RsAdd.MoveNext End If End Select ....MoveNext Wend End With Select Case ModNo Case 1 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9998 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9999 RsAdd.Update Case 2 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9998 RsAdd.Update Case 3 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update End Select End Function Thanks In Anticipation Tom Keatley From accessd667 at yahoo.com Mon Nov 29 02:04:40 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 29 Nov 2004 00:04:40 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041124141534.33810.qmail@web61105.mail.yahoo.com> Message-ID: <20041129080440.63373.qmail@web61106.mail.yahoo.com> absolutely knowbody any idea?? I'm really stuck on this one!! thnx in advance. Regards, SD S D wrote: Can anybody please help me with this one? Tips/links/articles any thing will do!! Regrds, sd S D wrote: Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Mon Nov 29 03:25:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Nov 2004 10:25:44 +0100 Subject: [AccessD] Divide A Table into 4 equal parts and append to a secondtable Message-ID: Hi Tom I guess you could pick every fourth record as base ID for a selection and create subselects to collect data from four records along these lines: SELECT DISTINCT ID\4 AS ID4, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 0) AS A, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 1) AS B, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 2) AS C, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 3) AS D FROM tblYourTable; This assumes that your IDs are truly sequential (no "holes"). If this is not the case, things get a little more complicated. Also, first ID should be 0. If not, you will need to move around the sequence of A to D and their modulos - from 0,1,2,3 to 1,2,3,0 if the first ID is 1. /gustav From Erwin.Craps at ithelps.be Mon Nov 29 05:49:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 29 Nov 2004 12:49:17 +0100 Subject: [AccessD] Not all queries present when mailmerge from word. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5596@stekelbes.ithelps.local> Hi Since Access version 2000 I notice that not all queries are visible in the merge window. Apparently all queries that are based on more then one table or have somewhat complex structure are missing. Why is this, and how can I see the afterall.... Greetz 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 Gustav at cactus.dk Mon Nov 29 06:01:53 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Nov 2004 13:01:53 +0100 Subject: [AccessD] Execute and transaction Message-ID: Hi all If you use the Execute method to run action queries, pay attention to this from the on-line help: In earlier versions of the Microsoft Jet Database Engine, SQL statements were automatically embedded in implicit transactions. If part of a statement executed with dbFailOnError failed, the entire statement would be rolled back. To improve performance, these implicit transactions were removed starting with version 3.5. If you are updating older DAO code, be sure to consider using explicit transactions around Execute statements. For best performance in a Microsoft Jet workspace, especially in a multiuser environment, nest the Execute method inside a transaction. Use the BeginTrans method on the current Workspace object, then use the Execute method, and complete the transaction by using the CommitTrans method on the Workspace. This saves changes on disk and frees any locks placed while the query is running. I just had to debug a case where an extremely simple update query (one table, less than 2000 records, updating an indexed field) during testing ran "just like that" while run from code took more than one minute. Wrapping it in a transaction cut the duration to one second: wks.BeginTrans qdf.Execute dbFailOnError qdf.Close wks.CommitTrans /gustav From GregSmith at starband.net Mon Nov 29 08:03:12 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 29 Nov 2004 08:03:12 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <001501c4d506$1368c590$6501a8c0@delllaptop> References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> Message-ID: <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Joe: Yes, it would. However, I'm not the one installing this program on customer's computers...our salespeople are (not Access savy, if you catch my drift...) and I'm not going to try and explain it to them. I don't have that much time left on Earth...;) But, if it does the runtime install, nobody has access to that part of Acess, so they can't be changed anyway. I haven't tried Marty's suggestions yet...his email is on my home computer which uses Starband (no choice...) for my internet...and this weekend one of their satellites (the one I use) went dark. There are a whole bunch of us without internet access (I'm at work right now..). Starband says it cannot be repaired (the satellite is 22,500 miles out...too far for a stepladder...) and will have to do something else. So please bear with me if I don't always respond right away. Thanks! Greg Smith gregsmith at starband.net > Would turning off warnings in tools options help on this? > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, November 22, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... > > > Get their network guy to change the following registry settings of the > following key, should help you change the security level of the macro in > Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access . . . From Jdemarco at hudsonhealthplan.org Mon Nov 29 08:44:22 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 29 Nov 2004 09:44:22 -0500 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BA0@TTNEXCHCL2.hshhp.com> Eric, I did a quick test of a little sample db and had the same result trying to match a category name using LIKE, BUT I noticed that if I change the query to use the Category ID rather than LIKE on the name column I returned results in the XML file. FWIW Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Eric Goetz Sent: Saturday, November 27, 2004 9:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] ExportXML fails calulated where in acc2003? Hi, I thought I'd incorporate a little XML in transferring data from an Access 2003 mdb to an Excel spreadsheet. The Excel XML List looks like a useful feature. The trouble is, I can't get Access to output the XML. I'm running Access 2003 as part of a complete install of Office 2003 Enterprise Edition with SP1. I've tried this on two machines: XPProSP1a and XPProSP2. I've wasted my day isolating a test case, and here it is... Test A, make sure you can do a simple export to XML. 1. Take a fresh copy of Northwind.mdb 2. Right click on the query called "Alphabetical List of Products" and select "Export..." 3. Use the combobox "Save as type:" to select XML. 4. Click "Export" 5. Take the defaults on the subsequent dialogs. 6. Open the ".xml" file that you just created. 7. WOW! You now know how to use XML! Test B, actually try to use XML to do some work. 1. Open the query "Alphabetical List of Products" in design view. 2. Add criteria to "CatagoryName" of Like "S*", which gives SQL of: SELECT Products.*, Categories.CategoryName FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID WHERE (((Categories.CategoryName) Like "S*") AND (Products.Discontinued)=No)); 3. Run the query to see that you get the 12 products from the Seafood category. 4. Save the query. 5. Perform steps 2 through 6 from Test A. 6. I get a nearly empty file. HUH? I thought I knew how to use XML. How about you? It seems that just about any calculation in the WHERE clause kills ExportXML. I've tried it from VBA as well as the manual method employed above. Thanks, Eric -- _______________________________________________ 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 EricGoetz at egisystems.com Mon Nov 29 10:48:43 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Mon, 29 Nov 2004 08:48:43 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EBB@servera22.doma.ops> Jim, Thank you so much for giving this a try. At least I know I'm not loosing my mind... I think. I'll take you suggestion and keep experimenting with work-arounds. Thanks, Eric -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Monday, November 29, 2004 6:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ExportXML fails calulated where in acc2003? Eric, I did a quick test of a little sample db and had the same result trying to match a category name using LIKE, BUT I noticed that if I change the query to use the Category ID rather than LIKE on the name column I returned results in the XML file. FWIW Jim DeMarco From dw-murphy at cox.net Mon Nov 29 12:51:34 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 29 Nov 2004 10:51:34 -0800 Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Message-ID: <001901c4d644$76027810$8500a8c0@murphyf3vdfepi> Take a look at Helen Feddema's Access Achron site, http://www.helenfeddema.com/access.htm, article 119 discussess 2003 security. There was also an article in one of the Access magazines, the Access Advisor I think, a few months ago on how to deal with 2003 security issues in designing your application. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Monday, November 29, 2004 6:03 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A2003 Macro Security in Runtime 'issue'... Joe: Yes, it would. However, I'm not the one installing this program on customer's computers...our salespeople are (not Access savy, if you catch my drift...) and I'm not going to try and explain it to them. I don't have that much time left on Earth...;) But, if it does the runtime install, nobody has access to that part of Acess, so they can't be changed anyway. I haven't tried Marty's suggestions yet...his email is on my home computer which uses Starband (no choice...) for my internet...and this weekend one of their satellites (the one I use) went dark. There are a whole bunch of us without internet access (I'm at work right now..). Starband says it cannot be repaired (the satellite is 22,500 miles out...too far for a stepladder...) and will have to do something else. So please bear with me if I don't always respond right away. Thanks! Greg Smith gregsmith at starband.net > Would turning off warnings in tools options help on this? > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: Monday, November 22, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... > > > Get their network guy to change the following registry settings of the > following key, should help you change the security level of the macro > in Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access . . . -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From EricGoetz at egisystems.com Mon Nov 29 12:58:20 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Mon, 29 Nov 2004 10:58:20 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EBF@servera22.doma.ops> Hi, And the answer is... ADO ANSI 92 wildcards vs MDB VBA wildcards. It turns out that ExportXML uses ADO, which uses ANSI 92 wildcards. My query uses wildcards that conform to VBA as explained in the Microsoft Access 2003 help topic: About ANSI SQL query mode (MDB). I had searched the MS knowledge base for "ExportXML" before posting this issue to AccessD. I didn't find anything relevant. If I would have searched the knowledge base with "Export XML", I would have found the following article. 823224 Access queries with a wildcard character do not export data to an XML document I've learned many things from this experience. I think I will be setting the "This database" checkbox in the "SQL Server Compatible Syntax (ANSI 92)" section of the "Tables/Queries" tab of the "Tools, Options..." dialog in Access for any new database work I do. That way the queries I write will be compatible across ADO, SQL server and the MDB. Has anyone else been turning on ANSI 92 compatibility for new work done in 2002-2003 file format MDBs? I think it will bring me one step closer to SQL Server, which is a good thing... I think.? Thanks, Eric From jmhla at earthlink.net Mon Nov 29 13:10:13 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:10:13 -0800 Subject: [AccessD] what is the right way to write this code Message-ID: <000c01c4d647$11cb8870$2002a8c0@delllaptop> If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net From bheid at appdevgrp.com Mon Nov 29 13:23:30 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 29 Nov 2004 14:23:30 -0500 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3ED46@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA89@ADGSERVER> I'd write it like: If not isnull(Me.JobTitleID) Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If OR If len("" & Me.JobTitleID)>0 Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If I would personally probably use the first one myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 13:33:03 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Nov 2004 19:33:03 -0000 Subject: [AccessD] what is the right way to write this code In-Reply-To: <000c01c4d647$11cb8870$2002a8c0@delllaptop> Message-ID: <008801c4d64a$3e5f8d70$b274d0d5@minster33c3r25> Hi Joe Try: If Not IsNull(Me.JobTitleID) Then Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) End If -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 29 November 2004 19:10 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] what is the right way to write this code > > > > > > > If Me.JobTitleID Is Null Then 'If row is > blank do nothing > > Else > > Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) > 'Display > job title > > > > End If > > > > Rowsource = > > SELECT [Job Title].JobTitleID, [Job Title].JobTitle > > FROM [Job Title] > > ORDER BY [Job Title].JobTitle; > > > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Jim.Hale at FleetPride.com Mon Nov 29 13:38:03 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 29 Nov 2004 13:38:03 -0600 Subject: [AccessD] what is the right way to write this code Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233725C@corp-es01.fleetpride.com> I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Monday, November 29, 2004 1:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jmhla at earthlink.net Mon Nov 29 13:38:23 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:38:23 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BBA89@ADGSERVER> Message-ID: <000001c4d64b$00d3ac60$2002a8c0@delllaptop> Thanks Bobby, Could not remember the proper way to test is not null. This list take a lot of the pain out of working alone. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, November 29, 2004 11:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I'd write it like: If not isnull(Me.JobTitleID) Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If OR If len("" & Me.JobTitleID)>0 Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If I would personally probably use the first one myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Mon Nov 29 13:44:05 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:44:05 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233725C@corp-es01.fleetpride.com> Message-ID: <000a01c4d64b$cc9f4de0$2002a8c0@delllaptop> Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale From nkling at co.montgomery.ny.us Mon Nov 29 13:44:41 2004 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Mon, 29 Nov 2004 14:44:41 -0500 Subject: [AccessD] Looking for TWAIN ocx Message-ID: <30BC111F638EB54082001A7E7282FE41114CBC@elmo.co.montgomery.ny.us> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From martyconnelly at shaw.ca Mon Nov 29 13:48:26 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Nov 2004 11:48:26 -0800 Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Message-ID: <41AB7D0A.50800@shaw.ca> Here is a news site and forum on Starband's problem http://www.abcnewsabsat.com/home.html#ia7 Looks like a full replacement satellite won't be available until Feburary. Greg Smith wrote: >Joe: > >Yes, it would. However, I'm not the one installing this program on >customer's computers...our salespeople are (not Access savy, if you catch >my drift...) and I'm not going to try and explain it to them. I don't >have that much time left on Earth...;) > >But, if it does the runtime install, nobody has access to that part of >Acess, so they can't be changed anyway. > >I haven't tried Marty's suggestions yet...his email is on my home computer >which uses Starband (no choice...) for my internet...and this weekend one >of their satellites (the one I use) went dark. There are a whole bunch of >us without internet access (I'm at work right now..). Starband says it >cannot be repaired (the satellite is 22,500 miles out...too far for a >stepladder...) and will have to do something else. > >So please bear with me if I don't always respond right away. > >Thanks! > >Greg Smith >gregsmith at starband.net > > > >>Would turning off warnings in tools options help on this? >> >>JOE HECHT >>LOS ANGELES CA >> jmhla at earthlink.net >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Monday, November 22, 2004 1:40 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... >> >> >>Get their network guy to change the following registry settings of the >>following key, should help you change the security level of the macro in >> Access 2003. He should be able to change this globally across the >>network for each client PC, there is even a way to do this from Access >> >> >. >. >. > > > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Mon Nov 29 13:50:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:50:45 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <000a01c4d64b$cc9f4de0$2002a8c0@delllaptop> Message-ID: <001101c4d64c$bac381d0$2002a8c0@delllaptop> What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Nov 29 13:54:49 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 29 Nov 2004 14:54:49 -0500 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3ED5D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA8D@ADGSERVER> You're quite welcome Joe. I know what you mean. I have gotten a lot of stuff off of here myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Thanks Bobby, Could not remember the proper way to test is not null. This list take a lot of the pain out of working alone. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Jim.Hale at FleetPride.com Mon Nov 29 15:01:26 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 29 Nov 2004 15:01:26 -0600 Subject: [AccessD] what is the right way to write this code Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337260@corp-es01.fleetpride.com> As in Franz Kakfa of "The Metamorphosis " fame, ie. "Man is an immense swamp. If he is seized with enthusiasm, the effect in the general picture is as though somewhere in a corner of this swamp a little frog had flopped into the green water." Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Monday, November 29, 2004 1:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From GregSmith at starband.net Mon Nov 29 15:32:53 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 29 Nov 2004 15:32:53 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <41AB7D0A.50800@shaw.ca> References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> <41AB7D0A.50800@shaw.ca> Message-ID: <2749.65.118.249.194.1101763973.squirrel@cetus.email.starband.net> Marty: Oh thanks. Kick me while I'm down. Looks like ONCE AGAIN I've moved from the 'cutting edge' to the more visited 'bleeding edge'... sigh. I've not heard anything from my installers, so who knows where they'll have to point it next. Oh heck with it. I'll just go play Halo 2 with my son on XBox...:) until they get it fixed. Now they can take their time... Greg Smith gregsmith at starband.net (when available...:P ) > Here is a news site and forum on Starband's problem > http://www.abcnewsabsat.com/home.html#ia7 > Looks like a full replacement satellite won't be available until > Feburary. > > Greg Smith wrote: > >>Joe: >> >>Yes, it would. However, I'm not the one installing this program on >> customer's computers...our salespeople are (not Access savy, if you >> catch my drift...) and I'm not going to try and explain it to them. I >> don't have that much time left on Earth...;) >> >>But, if it does the runtime install, nobody has access to that part of >> Acess, so they can't be changed anyway. >> >>I haven't tried Marty's suggestions yet...his email is on my home >> computer which uses Starband (no choice...) for my internet...and this >> weekend one of their satellites (the one I use) went dark. There are a >> whole bunch of us without internet access (I'm at work right now..). >> Starband says it cannot be repaired (the satellite is 22,500 miles >> out...too far for a stepladder...) and will have to do something else. >> >>So please bear with me if I don't always respond right away. >> >>Thanks! >> >>Greg Smith >>gregsmith at starband.net >> >> >> >>>Would turning off warnings in tools options help on this? >>> >>>JOE HECHT >>>LOS ANGELES CA >>> jmhla at earthlink.net >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> MartyConnelly Sent: Monday, November 22, 2004 1:40 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... >>> >>> >>>Get their network guy to change the following registry settings of the >>> following key, should help you change the security level of the macro >>> in >>> Access 2003. He should be able to change this globally across the >>>network for each client PC, there is even a way to do this from Access >>> >>> >>. >>. >>. >> >> >> >> >> > > -- > 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 stuart at lexacorp.com.pg Mon Nov 29 17:58:24 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Nov 2004 09:58:24 +1000 Subject: [AccessD] Looking for TWAIN ocx In-Reply-To: <30BC111F638EB54082001A7E7282FE41114CBC@elmo.co.montgomery.ny.us> Message-ID: <41AC4440.23525.F6E667D@lexacorp.com.pg> On 29 Nov 2004 at 14:44, Neal Kling wrote: > I'm looking for a simple ocx/activex control/library to capture images from > a scanner in Access 2K. There are various available but the one's I've seen > seem to be built to take you to the moon and back. I don't need editing, > conversion etc. Just capture to the basic file types. Specifically TIF. > > I'll want to be able to specify path/name, file type, resolution. The whole > idea here is that I'm trying to remove a weak link, that being the users > saving with the wrong file names. Take a look at http://www.ciansoft.com/twaincontrolx/default.asp They have a free trial version available for download. -- Stuart From jmhla at earthlink.net Mon Nov 29 19:03:03 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 17:03:03 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337260@corp-es01.fleetpride.com> Message-ID: <000501c4d678$5bf72680$6501a8c0@delllaptop> Clueless oh well JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code As in Franz Kakfa of "The Metamorphosis " fame, ie. "Man is an immense swamp. If he is seized with enthusiasm, the effect in the general picture is as though somewhere in a corner of this swamp a little frog had flopped into the green water." Jim Hale What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:06:34 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:06:34 -0800 Subject: [AccessD] Calc line total if unit price is null X Posted Message-ID: <001501c4d681$3c8f8360$6501a8c0@delllaptop> Clients that like incomplete data make me nuts. Building A PODetails report. Client has prices for some things but not others. They fluctuate day to day. I can calculate quantity*price I need a workaround for 1. Line Total 2. PO Total When some or all prices on a Product are null. Sitting here tapping my receive key Thanks gang. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:10:05 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:10:05 -0800 Subject: [AccessD] Phone trees X posted Message-ID: <001a01c4d681$ba3b9a10$6501a8c0@delllaptop> Anybody here every wish they could call some one for help when they are stumped? I am in Los Angeles. Does any one in this area want to build a support for quick help calls? I am willing to organize A Los Angeles area tree. All numbers will be kept off list to foil bots and spammers. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:23:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:23:14 -0800 Subject: [AccessD] Right Click Issue Message-ID: <004f01c4d683$8efb7300$6501a8c0@delllaptop> I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 21:51:24 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 19:51:24 -0800 Subject: [AccessD] Count pages in a report Message-ID: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From d.dick at uws.edu.au Mon Nov 29 21:59:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 14:59:36 +1100 Subject: [AccessD] Calc line total if unit price is null X Posted In-Reply-To: <001501c4d681$3c8f8360$6501a8c0@delllaptop> Message-ID: <200411300359.iAU3xux6011050@cooper.uws.edu.au> The math fails on a null usually. So just turn nulls to zeros - it is a valid way of doing it Convert a null to zero then the math will work Eg In a query some thing like xLINETOTAL:iif(isnull([UnitPrice]),0) Or nz([UnitPrice],0) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:07 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Calc line total if unit price is null X Posted Clients that like incomplete data make me nuts. Building A PODetails report. Client has prices for some things but not others. They fluctuate day to day. I can calculate quantity*price I need a workaround for 1. Line Total 2. PO Total When some or all prices on a Product are null. Sitting here tapping my receive key Thanks gang. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 22:04:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 15:04:39 +1100 Subject: [AccessD] Right Click Issue In-Reply-To: <004f01c4d683$8efb7300$6501a8c0@delllaptop> Message-ID: <200411300404.iAU44xx6015666@cooper.uws.edu.au> FOR the right click menu on a form to 'come back'..... In the Property Sheet of a form in design view Under the 'Other' tab Make sure there is a YES in the Shortcut Menu line RE the DB window not showing on a right click Hold down the shift key when opening the dB Go to Tools|Startup the tick and selet what you require Hope this helps -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Right Click Issue I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Nov 29 22:35:13 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 20:35:13 -0800 Subject: [AccessD] Count pages in a report In-Reply-To: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <000801c4d695$ff086d30$6501a8c0@delllaptop> Ok, I did some research To get count of pages in a report per FMS codetools: Public Property Get CountOfPages() As Integer ' Comments : Returns the count of Pages ' Source : Total Visual SourceBook 2002 ' CountOfPages = m_intCountPages End Property Record source for text box ="Page " & [Page] & " of " & [Pages] Textbox visible = false Pseuodo code If countofpages>1 then textbox1.visible = true where do I put property? How do I write Psudo code and where JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 7:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 22:40:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 15:40:42 +1100 Subject: [AccessD] Count pages in a report In-Reply-To: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <200411300441.iAU4f2x6017777@cooper.uws.edu.au> Hi Joe To refer to the Pages property in a macro or Visual Basic, the form or report must include a text box whose ControlSource property is set to an expression that uses Pages. For example, you can use the following expression as the ControlSource property setting for a text box in a page footer. Eg me. Try something like the following in the control source of a Text Box Control on the report Me.txtPageCounter = "Page " & Page & " of " & Pages Or try Me.txtNoOfPagesInThisReport = "There are " & Pages & " in this report" Or try Me.txtNoOfPagesInThisReport = Pages (Without testing) in VBA maybe something like if me.txtNoOfPagesInThisReport =1 then Msgbox "only 1 page" elseif me.txtNoOfPagesInThisReport >1 then Msgbox "more than one page - infact we have " & me.txtNoOfPagesInThisReport & " pages" End if (I havent tested that little bit though) To get the page you are on... Debug.Print Reports("rptMyReport").OnPage This next bit tells you if you are on an even or Odd page number Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer) On Error GoTo ErrorHandler dim intPageNo as integer intPageNo = Me.Page Debug.Print "Page: " & intPageNo If intPageNo Mod 2 = 0 Then 'The page number is even Else ' the page number is false End If -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 2:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Nov 29 22:43:44 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 30 Nov 2004 14:43:44 +1000 Subject: [AccessD] Count pages in a report References: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <00df01c4d697$2cfab490$fa10a8c0@Albatross> Joe, Here's an example of how to put no page display on page 1 (contained in control Text28 which has it's control source : ="Page " & [Page] & " of " & [Pages] ) and page display on rest of report pages Regards Borge Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer) On Error GoTo ErrorHere If Me.Page = 1 Then Me.Text28.Visible = False Else Me.Text28.Visible = True End If ErrorExit: Exit Sub ErrorHere: Select Case Err.Number Case Is = 0 Resume Next 'case is = ?? 'msgbox "Enter some error text message here" Case Else MsgBox "Error in PageFooter_Format " & ": " & Err.Number & " " & Err.Description End Select Resume ErrorExit ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, November 30, 2004 1:51 PM Subject: [AccessD] Count pages in a report > Anyone know how to do it? > > Working on Purchase orders. If page count > 1 then I want to put page count > on all pages. If page count = 1 then no page count needs to be displayed. > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From Developer at UltraDNT.com Mon Nov 29 22:46:08 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 29 Nov 2004 23:46:08 -0500 Subject: [AccessD] Count pages in a report In-Reply-To: <000801c4d695$ff086d30$6501a8c0@delllaptop> Message-ID: <000601c4d697$828a1630$0200a8c0@COA3> Why not in the text box record source, just put an IIF: =IIF([Pages]>1, [Pages], "") Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Count pages in a report Ok, I did some research To get count of pages in a report per FMS codetools: Public Property Get CountOfPages() As Integer ' Comments : Returns the count of Pages ' Source : Total Visual SourceBook 2002 ' CountOfPages = m_intCountPages End Property Record source for text box ="Page " & [Page] & " of " & [Pages] Textbox visible = false Pseuodo code If countofpages>1 then textbox1.visible = true where do I put property? How do I write Psudo code and where JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 7:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Mon Nov 29 23:02:56 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 21:02:56 -0800 Subject: [AccessD] Right Click Issue In-Reply-To: <200411300404.iAU44xx6015666@cooper.uws.edu.au> Message-ID: <000901c4d699$de3dd0f0$6501a8c0@delllaptop> My hero for this crises. Thanks Darren JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, November 29, 2004 8:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Right Click Issue FOR the right click menu on a form to 'come back'..... In the Property Sheet of a form in design view Under the 'Other' tab Make sure there is a YES in the Shortcut Menu line RE the DB window not showing on a right click Hold down the shift key when opening the dB Go to Tools|Startup the tick and selet what you require Hope this helps -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Right Click Issue I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 30 05:18:11 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 12:18:11 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From cyx5 at cdc.gov Tue Nov 30 07:11:39 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 30 Nov 2004 08:11:39 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. From Jdemarco at hudsonhealthplan.org Tue Nov 30 07:37:16 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 08:37:16 -0500 Subject: [AccessD] Export to rtf truncates data Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB6@TTNEXCHCL2.hshhp.com> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application 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 Jdemarco at hudsonhealthplan.org Tue Nov 30 07:55:12 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 08:55:12 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB7@TTNEXCHCL2.hshhp.com> Karen, We have an app that we did not write (open source chronic disease registry) that uses A2K runtime as well. We've experienced similar issues on Win XP machines but unfortunately we have not found a fix. We too are thinking of upgrading to A2K3 runtime but our problem is the install app was not written here and I'm not sure how we'll deploy (the app uses MS Graph as well as Access). Anyway, our issue with the app prompting users is the installer running when the user picks a client name from a list box. I've seen this happen when opening Office apps but never from within a running application (and never on a list click!). Sorry I couldn't be of more help but I figured I'd let you know about our issue. We've since installed on numerous XP machines with only one other instance of the installer trying to run so we really haven't a clue as to what's triggering this. The first case does not have an Office install at all (further adding to the mystery), the second did (Office 2003 we're told but it was never confirmed). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ 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 Tue Nov 30 08:16:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 15:16:44 +0100 Subject: [AccessD] Export to rtf truncates data Message-ID: Hi Jim I've heard of a similar case; same symptoms but no solution. Have you turned off all autospelling, autocorrection etc. in Access XP? This can influence on margin settings (!) in reports. Could it be a font issue? What happens if you format the entire report with another font? It may not be an option but could bring an indication of where to look further. If you find out, please let us know. /gustav >>> Jdemarco at hudsonhealthplan.org 30-11-2004 14:37:16 >>> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application Development Hudson Health Plan From mikedorism at adelphia.net Tue Nov 30 08:23:35 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 30 Nov 2004 09:23:35 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: <000001c4d6e8$2fda02f0$0b08a845@hargrove.internal> We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Nov 30 08:25:02 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 09:25:02 -0500 Subject: [AccessD] Export to rtf truncates data Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB8@TTNEXCHCL2.hshhp.com> Thanks Gustav and my apologies for not stating that we're using A97 on Win2K. Will try both suggestions anyway and let you know how we make out. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, November 30, 2004 9:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Export to rtf truncates data Hi Jim I've heard of a similar case; same symptoms but no solution. Have you turned off all autospelling, autocorrection etc. in Access XP? This can influence on margin settings (!) in reports. Could it be a font issue? What happens if you format the entire report with another font? It may not be an option but could bring an indication of where to look further. If you find out, please let us know. /gustav >>> Jdemarco at hudsonhealthplan.org 30-11-2004 14:37:16 >>> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application Development Hudson Health Plan -- _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 30 08:34:09 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 30 Nov 2004 09:34:09 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: My user is in California, so I will have to wait for him to get to work to find out. I will post back later. It is not just me.... Hmmm. Sagekey anyone? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, November 30, 2004 9:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 30 08:38:21 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 30 Nov 2004 15:38:21 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> Can anyone tell me why the form in this database flickers like hell when moving over the green zones or labels. This only in A2K3, same database same form, does not flicker in A2K2.... http://www.ithelps.be/temp/test.mdb greetz 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 Rich_Lavsa at pghcorning.com Tue Nov 30 09:09:34 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 10:09:34 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF1@goexchange2.pghcorning.com> Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich From oleg_123 at xuppa.com Tue Nov 30 10:52:27 2004 From: oleg_123 at xuppa.com (oleg_123 at xuppa.com) Date: Tue, 30 Nov 2004 11:52:27 -0500 (EST) Subject: [AccessD] Query Question Message-ID: <4394.212.42.94.42.1101833547.squirrel@imap1.xuppa.com> I need a query to have 4 extra columns, which would have values from column [book] is previous column is not 0. something like ExtraColumn:IF [clienthours] <> 0 Then [book] Thank you ----------------------------------------- You are entitled to Get 100% FREE perfume (S&H is FREE)! Click Here: http://azjmp.com/az/ch.php?f=176&i=657&sub=webmail From dwaters at usinternet.com Tue Nov 30 09:51:14 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 30 Nov 2004 09:51:14 -0600 Subject: [AccessD] Access Charts (Graphing) and resolution issue In-Reply-To: <15414158.1101827504822.JavaMail.root@sniper13.securence.com> Message-ID: <000601c4d6f4$6c136070$de1811d8@danwaters> Rich, A possibility is that the DPI setting on your screen resolution might be different between PC's. Go to Settings, push Advanced, and see what your setting is and your customer's setting. Changing DPI will affect the resolution of the entire screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Tuesday, November 30, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Charts (Graphing) and resolution issue Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at isharp.co.uk Tue Nov 30 10:00:12 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Tue, 30 Nov 2004 16:00:12 -0000 Subject: [AccessD] Query Question In-Reply-To: <668C5C868606C641857281147C46893657B807@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C4689365525D1@primary.orridge.co.uk> What about ExtraColumn1: IIF([ClientHours]<>0, [BOOK]) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of oleg_123 at xuppa.com Sent: 30 November 2004 16:52 To: accessd at databaseadvisors.com Subject: [AccessD] Query Question I need a query to have 4 extra columns, which would have values from column [book] is previous column is not 0. something like ExtraColumn:IF [clienthours] <> 0 Then [book] Thank you ----------------------------------------- You are entitled to Get 100% FREE perfume (S&H is FREE)! Click Here: http://azjmp.com/az/ch.php?f=176&i=657&sub=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Tue Nov 30 10:16:25 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 11:16:25 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF2@goexchange2.pghcorning.com> I had checked that before and all are set to (small fonts) Normal Size or 96 DPI depending on the Windows version XP or 2000. Either way all are set to 96DPI. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, November 30, 2004 10:51 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue Rich, A possibility is that the DPI setting on your screen resolution might be different between PC's. Go to Settings, push Advanced, and see what your setting is and your customer's setting. Changing DPI will affect the resolution of the entire screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Tuesday, November 30, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Charts (Graphing) and resolution issue Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dw-murphy at cox.net Tue Nov 30 11:09:53 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 30 Nov 2004 09:09:53 -0800 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: <000f01c4d6ff$68902c20$8500a8c0@murphyf3vdfepi> Karen, We have a product developed in Access XP that we sell. I built the install with Wise installer 9 and the associated Sagekey scripts. We have had not experienced the problem you describe. I have tested our installation package on as many operating systems and different configurations of these systems as I can come up with and all seem to work. I'd recommend going the Wise/Install shield Sagekey route. Another benefit of using the Sagekey scripts is that you can download from Sagekey all the ancillary files required for installation in one package. When you use the Developer deployment wizard it pulls the files from your computer and you may run into versioning problems. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 5:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Nov 30 11:19:40 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 09:19:40 -0800 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP References: Message-ID: <41ACABAC.5090201@shaw.ca> Well you could develop your Access 2000 runtime on an XP box. Going to Access 2003 will give you a few more headaches as you will have to handle Access Macro Security with 2003 yourself. The Access 2003 sagekey scripts have a way of disabling macro security for a specific install without using a certificate store. For one site I had someone write a quick and dirty VB program to startup up access with 2003 macro security disabled.. With SageKey you are essentially paying for the testing of their product with a myriad of OS and Access permutations. You could buy just the MSI installer scripts from SageKey if you have a vanilla install, ie. no multiple OCX's to be installed as well. Cheaper than buying Install Shield or Wise with the scripts. Ask sagekey about it. Why don't you phone SageKey (888) 248-0055 Tollfree They are in British Columbia and speak Canadian ;). Nicholson, Karen wrote: >My user is in California, so I will have to wait for him to get to work >to find out. I will post back later. It is not just me.... Hmmm. >Sagekey anyone? > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris >Manning >Sent: Tuesday, November 30, 2004 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on >Windows XP > > >We had similar problems doing installs on Windows XP machines. What >files >is it prompting them to get so I can check my notes? > >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 Nicholson, >Karen >Sent: Tuesday, November 30, 2004 8:12 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on >Windows >XP > > >This runtime issue is starting to drive me a little bonkers. I am >running >Windows 2000 Professional, using the Access 2000 runtime deployment >wizard >and now my manufacturers who just have plain old XP are not able to run >my >runtime installation package. The package is prompting the user to get >files that it does not have and then their system boots. > >Has anyone had this problem? What are my options? Will upgrading to >Access >2003/Deployment Wizard solve the XP problem when I am developing on >Windows >2000 Professional? > >About SageKey - is this product good enough to take all the operating >systems and Access versions off the table and just run a clean >installation >of the runtime package? > >SO: A) - Upgrade to Access 2003/Deployment Wizard > B) - Do the SageKey > >Opinions, please? > >Thanks. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Nov 30 11:41:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 09:41:00 -0800 Subject: [AccessD] Access Charts (Graphing) and resolution issue References: <2A261FF9D5EBCA46940C11688CE872EE03AAF2@goexchange2.pghcorning.com> Message-ID: <41ACB0AC.7060705@shaw.ca> Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might be >different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are usually >on 800 x 600. I take into account when developing to make sure the >screens fit on a 800 x 600 screen. I didn't do testing on my graphs >using a standard users computer because I didn't even think this would >be an issue. What is happening is that the graphs are getting chopped >off at the Right hand side on a users machine where they are not on my >machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at once >in a query, and most of the graphs are trend style over a month or even >yearly so they are usually wide. > >Thanks in advance >Rich > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Tue Nov 30 11:49:22 2004 From: john at winhaven.net (John Bartow) Date: Tue, 30 Nov 2004 11:49:22 -0600 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: Karen, I have used Wise/Sagekey for 5 years now for various applications to many end users. These apps have been installed on W95/98/ME/NT/2K/XP and server versions. I have never had a problem with conflicts or with installations. These products are expensive, and do require some involved learning on how to operate Wise Installation System beyond its wizard interfaces (SageKey scripts are just that - text scripts to be used as add-in/starting points for the installed products), I have been totally satisfied with these purchases and IMO they have paid for themselves. If for no other reason than a lack of the frustration I see from others who haven't made the purchases. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 8:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP My user is in California, so I will have to wait for him to get to work to find out. I will post back later. It is not just me.... Hmmm. Sagekey anyone? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, November 30, 2004 9:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 30 12:09:47 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 30 Nov 2004 13:09:47 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9AC@DISABILITYINS01> >due to WYSIWYG (haven't heard that term in a while) WYSIWYWPNGSDBAMAI: What You See Is What You Will Probably NEVER Get So Don't Bother Asking Me About It. John W. Colby The DIS Database Guy -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, November 30, 2004 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Charts (Graphing) and resolution issue Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might be >different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are usually >on 800 x 600. I take into account when developing to make sure the >screens fit on a 800 x 600 screen. I didn't do testing on my graphs >using a standard users computer because I didn't even think this would >be an issue. What is happening is that the graphs are getting chopped >off at the Right hand side on a users machine where they are not on my >machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at once >in a query, and most of the graphs are trend style over a month or even >yearly so they are usually wide. > >Thanks in advance >Rich > > -- 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 Rich_Lavsa at pghcorning.com Tue Nov 30 12:19:04 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 13:19:04 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF4@goexchange2.pghcorning.com> That sounds exactly like what is happening to me. I suppose there is no way to "trick" the application that it is actually set at 1024x768 at report generation time is there? Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 30, 2004 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Charts (Graphing) and resolution issue Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might >be different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are >usually on 800 x 600. I take into account when developing to make sure >the screens fit on a 800 x 600 screen. I didn't do testing on my >graphs using a standard users computer because I didn't even think this >would be an issue. What is happening is that the graphs are getting >chopped off at the Right hand side on a users machine where they are >not on my machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at >once in a query, and most of the graphs are trend style over a month or >even yearly so they are usually wide. > >Thanks in advance >Rich > > -- 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 Tue Nov 30 12:26:05 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 10:26:05 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> Message-ID: <41ACBB3D.6040209@shaw.ca> You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html Erwin Craps - IT Helps wrote: >Can anyone tell me why the form in this database flickers like hell when >moving over the green zones or labels. >This only in A2K3, same database same form, does not flicker in A2K2.... > >http://www.ithelps.be/temp/test.mdb > >greetz > > > >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 > > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Tue Nov 30 13:38:16 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 30 Nov 2004 20:38:16 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A1@stekelbes.ithelps.local> I don't believe this :-) And this is known since february and no fix yet???? Pff A2K3 is disapointing me. I did'nt programmed a lot in the last 6 months or so, and I recently started again in A2K3. I crash about three to four times a day my Access 2K3 while developing, sometimes just when clicking on a combobox to open it. I'm back to A2K2 now... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 30, 2004 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html Erwin Craps - IT Helps wrote: >Can anyone tell me why the form in this database flickers like hell >when moving over the green zones or labels. >This only in A2K3, same database same form, does not flicker in A2K2.... > >http://www.ithelps.be/temp/test.mdb > >greetz > > > >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 > > > > -- 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 Nov 30 13:46:38 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 20:46:38 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Marty > You ain't gonna believe this .. So true! /gustav From rl_stewart at highstream.net Tue Nov 30 15:09:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 30 Nov 2004 15:09:01 -0600 Subject: [AccessD] Re: Right Click Issue In-Reply-To: <200411301312.iAUDCtL17396@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041130150825.04b68008@pop3.highstream.net> Check under startup options and see if the allow shortcut menus is checked. At 07:12 AM 11/30/2004 -0600, you wrote: >Date: Mon, 29 Nov 2004 18:23:14 -0800 >From: "Joe Hecht" >Subject: [AccessD] Right Click Issue >To: "'Access Developers discussion and problem solving'" > >Message-ID: <004f01c4d683$8efb7300$6501a8c0 at delllaptop> >Content-Type: text/plain; charset="US-ASCII" > >I am working on an inherited database XP. A lot of the right click >functionality seems to be gone. ( Like DB window< I would like to add object >descriptions. > > > >Is there a setting I do not know about? > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net From mcaro at bigpond.net.au Tue Nov 30 15:23:46 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Wed, 1 Dec 2004 08:23:46 +1100 Subject: [AccessD] Push merge list to Word Message-ID: <000c01c4d722$e0556810$0100000a@MITSERVER> Hi Folks I am looking for some code to send the results of an Access query to Word to be used as a merge list for envelops and/or letters. My search to date has provided various push/pull bits an pieces with varying complexity but I'm still looking for a simple push method that will launch Word with the data source in place. Any pointers would be appreciated Martin From jmhla at earthlink.net Tue Nov 30 15:30:17 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 13:30:17 -0800 Subject: [AccessD] Push merge list to Word In-Reply-To: <000c01c4d722$e0556810$0100000a@MITSERVER> Message-ID: <200411302130.iAULUDL16603@databaseadvisors.com> Depending on how automated you need you can start wood and use there merge tool. If you need more let me know. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Tuesday, November 30, 2004 1:24 PM To: Access Developers discussion and problem solving Subject: [AccessD] Push merge list to Word Hi Folks I am looking for some code to send the results of an Access query to Word to be used as a merge list for envelops and/or letters. My search to date has provided various push/pull bits an pieces with varying complexity but I'm still looking for a simple push method that will launch Word with the data source in place. Any pointers would be appreciated Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Nov 30 16:24:37 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 14:24:37 -0800 Subject: [AccessD] Count pages in a report In-Reply-To: <000601c4d697$828a1630$0200a8c0@COA3> Message-ID: <005f01c4d72b$63e93550$6501a8c0@delllaptop> Thanks All I read all suggestion but putting it in an IIF seems to be what I wanted. With Steve's help I came up with the expression below which seems to work. =IIF([Pages]>1,"Page " & [Page] & " of " & [Pages], "") JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin (Developer at UltraDNT) Sent: Monday, November 29, 2004 8:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Count pages in a report Why not in the text box record source, just put an IIF: =IIF([Pages]>1, [Pages], "") Steve From mcaro at bigpond.net.au Tue Nov 30 17:42:17 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Wed, 1 Dec 2004 10:42:17 +1100 Subject: [AccessD] Push merge list to Word References: <200411302130.iAULUDL16603@databaseadvisors.com> Message-ID: <005101c4d736$3a4c9600$0100000a@MITSERVER> I need to automate the process from within Access ie Word is launched, the data source is set and the user just needs to hit merge in Word. I need to supply buttons in Access for envelops or letter.... I'm aware I'll need to setup a form letter/s in Word. Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 01, 2004 8:30 AM Subject: RE: [AccessD] Push merge list to Word > Depending on how automated you need you can start wood and use there merge > tool. > > If you need more let me know. > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Tuesday, November 30, 2004 1:24 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Push merge list to Word > > Hi Folks > > I am looking for some code to send the results of an Access query to Word to > be used as a merge list for envelops and/or letters. > > My search to date has provided various push/pull bits an pieces with varying > complexity but I'm still looking for a simple push method that will launch > Word with the data source in place. > > Any pointers would be appreciated > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Tue Nov 30 17:46:22 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 15:46:22 -0800 Subject: [AccessD] Which Report Event to use. and related code XP Message-ID: <006c01c4d736$cf3465e0$6501a8c0@delllaptop> I want to set some code If is null [txtnotes] then [txtnotes].visible = false I am thinking that should go into the on format event, but I do not see that event. This text box is part of a sub report so it needs to check this for each row in the report. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Tue Nov 30 17:53:00 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 15:53:00 -0800 Subject: [AccessD] Push merge list to Word In-Reply-To: <005101c4d736$3a4c9600$0100000a@MITSERVER> Message-ID: <007201c4d737$bc6ba1c0$6501a8c0@delllaptop> Helen Feddema Access book has something on that. I have not read that chapter yet. Check the group archives. This topic has been discussed before. I need to figure out too, for the project I have been harassing the list this week about. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Tuesday, November 30, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Push merge list to Word I need to automate the process from within Access ie Word is launched, the data source is set and the user just needs to hit merge in Word. I need to supply buttons in Access for envelops or letter.... I'm aware I'll need to setup a form letter/s in Word. Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 01, 2004 8:30 AM Subject: RE: [AccessD] Push merge list to Word > Depending on how automated you need you can start wood and use there merge > tool. > > If you need more let me know. > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Tuesday, November 30, 2004 1:24 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Push merge list to Word > > Hi Folks > > I am looking for some code to send the results of an Access query to Word to > be used as a merge list for envelops and/or letters. > > My search to date has provided various push/pull bits an pieces with varying > complexity but I'm still looking for a simple push method that will launch > Word with the data source in place. > > Any pointers would be appreciated > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Tue Nov 30 20:08:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 18:08:41 -0800 Subject: [AccessD] Convert text to number X posted Message-ID: <000001c4d74a$b1093960$6501a8c0@delllaptop> Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jwcolby at colbyconsulting.com Tue Nov 30 20:35:57 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 30 Nov 2004 21:35:57 -0500 Subject: [AccessD] Convert text to number X posted In-Reply-To: <000001c4d74a$b1093960$6501a8c0@delllaptop> Message-ID: <001d01c4d74e$81574e60$e8dafea9@ColbyM6805> I would copy the table STRUCTURE to a new table, same name, with a 1 on the end. Now the new table is empty. Change the PK to an autonumber. Build an append query to append the data from old to new. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, November 30, 2004 9:09 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Convert text to number X posted Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Tue Nov 30 20:41:11 2004 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 1 Dec 2004 12:41:11 +1000 Subject: [AccessD] Convert text to number X posted References: <000001c4d74a$b1093960$6501a8c0@delllaptop> Message-ID: <00bc01c4d74f$384969a0$fa10a8c0@Albatross> Hi Joe, This is what I would do: Create new Number Field in table Update the NumberField with Key Vendor ID converted to number Run a comparison check of Key Vendor ID and text value of Number Field Do necessary clean up on records where not identical Make the Number Field the new FK Tick it Done! Regards Borge Hansen ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" ; "'ACCESS-L'" Sent: Wednesday, December 01, 2004 12:08 PM Subject: [AccessD] Convert text to number X posted > Finally found big trap in inherited database. > > > > Foreign Key Vendor ID is set as text. I need to convert it to long number. > > > > If I change data type to number Access threatens to delete all fields. > > > > I cannot find anything in help on Cnum. > > > > All thoughts apreciated > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From greggs at msn.com Tue Nov 30 22:38:15 2004 From: greggs at msn.com (Gregg) Date: Tue, 30 Nov 2004 22:38:15 -0600 Subject: [AccessD] To open or not to open References: <000001c4d74a$b1093960$6501a8c0@delllaptop> <00bc01c4d74f$384969a0$fa10a8c0@Albatross> Message-ID: I have a home made security system that addresses user rights based upon their function. My method is to call a module that is on the on open of the form that will set the Add, Edit, and Delete rights based upon the user's function and the rights assigned to that function. My problem is... if a user does not have Add rights and there is no data for the criteria specified... I get an error "can't go to the specified record ". I understand the form is being opened without data to go to and therefore will try to go to a new record and naturally will error because we have set ADD to no. My question is what method can I use to avoid all that? My wish is to issue a message that there is no data to view and return without opening the fom From bchacc at san.rr.com Tue Nov 30 23:07:15 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 30 Nov 2004 21:07:15 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> <41ACBB3D.6040209@shaw.ca> Message-ID: <027f01c4d763$9fca35a0$6501a8c0@HAL9002> Marty: Thanks for the heads up on this. Just came across this today at two customer sites where they put my A2K app on an A2K3 machine and the flash was really annoying. I tried a couple of things but no soap. I'll walk them through this tomorrow . Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 30, 2004 10:26 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > You ain't gonna believe this but if running WinXP change your theme by > right-clicking your Windows XP desktop, choosing Properties, and setting > the Theme to "Windows Classic". > If you cannot solve it by deselecting Use Windows Themed Controls on > Forms under Tools | Options | Forms/Reports in Access 2003 > The flickering or flutter goes away on my machine using Win XP Theme > Classic Access 2003 and by deselecting above option > The flickering is triggered by unattached labels on the page of a tab > control. The workaround is to convert these labels to text boxes. > For non english speakers I found this by searching on Screen Flutter > rather than Flicker. > > For full explanation. and code to correct all forms if above tools option > method doesn't work > http://members.iinet.net.au/~allenbrowne/ser-46.html > > Erwin Craps - IT Helps wrote: > >>Can anyone tell me why the form in this database flickers like hell when >>moving over the green zones or labels. >>This only in A2K3, same database same form, does not flicker in A2K2.... >> http://www.ithelps.be/temp/test.mdb >> greetz >> >> >>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 >> >> > > -- > 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 accessd at shaw.ca Tue Nov 30 23:32:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 30 Nov 2004 21:32:55 -0800 Subject: [AccessD] To open or not to open In-Reply-To: Message-ID: Hi Gregg: Maybe try something as simple as catching the error code and managing it yourself. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, November 30, 2004 8:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] To open or not to open I have a home made security system that addresses user rights based upon their function. My method is to call a module that is on the on open of the form that will set the Add, Edit, and Delete rights based upon the user's function and the rights assigned to that function. My problem is... if a user does not have Add rights and there is no data for the criteria specified... I get an error "can't go to the specified record ". I understand the form is being opened without data to go to and therefore will try to go to a new record and naturally will error because we have set ADD to no. My question is what method can I use to avoid all that? My wish is to issue a message that there is no data to view and return without opening the fom -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Nov 1 01:10:12 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sun, 31 Oct 2004 23:10:12 -0800 (PST) Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: <20041101071012.91647.qmail@web20423.mail.yahoo.com> Were you doing some ADO programming with AccessXP and moved the ADO reference above the DAO? I have seen that happen before and caused problems. Just a thought. Borge Steen Hansen wrote:Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From accessd at shaw.ca Mon Nov 1 00:33:26 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 31 Oct 2004 22:33:26 -0800 Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: Hi Borge: I am not saying this is the answer but I have never referred to the current db using set db = CurrentDb try set db = CurrentDb() or try the old method: DBEngine(0)(0) for accessing the current db. Another thing to do would be to check whether there is a reference to Microsoft Access 11.0 Object library, in addition. I am not sure whether an old Access97 applications actually works in an XP environment...It may have to be converted. I have converted applications up to Access2003 without error with not issues...once converted. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Sunday, October 31, 2004 6:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] CurrentDB Error Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Nov 1 06:57:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 07:57:10 -0500 Subject: [AccessD] CurrentDB Error In-Reply-To: <009501c4bfbd$9d132be0$fa10a8c0@Albatross> Message-ID: The DAO reference may be broken. Open a module in design view, click tools/references. See if it's listed as MISSING or BROKEN. If it is, most likely you'll simply need to re-register it with regsvr32.exe I none are listed missing or broken, check any reference that is not currently checked, close the MDB and Access, re-open and uncheck the reference you just checked. Then try a compile. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Sunday, October 31, 2004 9:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] CurrentDB Error Hi, I have a some Access97 database applications that have been working for years. They are currently sitting on WinXP with AccessXP installed as well. Been working on the XP box for over a year! Recently when making a minor modification and doing a 'Compile and Save' I get the following message on the first instance of CurrentDb Compile Error: Funtion or interface marked as restricted, or the function uses Automation type not supported in Visual Basic. I have reference to Microsoft DAO Object Library 3.6 The dao.dll is version 03.60.8618.0 Even if I try to disambiguate the thing, the compile error comes up: like: dim db as DAO.Database set db = CurrentDb when compiling it will error on the set db = CurrentDb line. Can anyone help me to shed light on what is going on? Regards Borge Gold Coast, Australia --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Nov 1 08:24:25 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 1 Nov 2004 06:24:25 -0800 (PST) Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From serbach at new.rr.com Mon Nov 1 08:54:45 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 1 Nov 2004 08:54:45 -0600 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <20041101142425.31611.qmail@web61104.mail.yahoo.com> References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: <20041101085445.1988690789.serbach@new.rr.com> Sander, This sounds like what happens when the BE has moved. And, regarding Windows XP, are you running Service Pack 2? Do you have a link-checking routine running at the start of your application like Tribble's AutoLinker? I had to modify one of the procedures in that library to avoid the incredible amount of time it would take for a link to be checked that was broken. Regards, Steve Erbach Neenah, WI "I belong to no organized party. I am a Democrat." - Will Rogers > ------------Original Message------------ > From: S D > To: accessd at databaseadvisors.com > Date: Mon, Nov-1-2004 8:49 AM > Subject: [AccessD] Network issues PLEASE ADVISE > > Hi group, > > I've got a MAJOR problem. > > I've got an A2K application with a BE and a FE. FE is installed on the > local machine and the BE is installed on the server. Using WinNT > Performance has always been soso. Not fast but not very slow either. > > Now we've migrated everything to A2k2 with WinXP. > > Performance is terrible times 10!! Opening the FE takes about 20-25 > minutes. Opening a linked table takes 9 minutes same goes for tables in > the FE itself. > > However, when I open the FE and if I open a table that is stored in the > FE it opens directly, no problem. When I then open a linked table => > bang back to 9 minutes per table (linked or not) > > Is it possible that this somehow has to do with A2k2?? I know in Access > 2 (that is two!!) you had to change OPENFILES parameter thingies > somewhere. Does Access 2002 also have such a setting that must be tweaked?? > > TIA > > Sander From bheygood at abestsystems.com Mon Nov 1 09:07:13 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 1 Nov 2004 07:07:13 -0800 Subject: [AccessD] Access - Advantage - Mediwin In-Reply-To: <060101c4a7cc$4a5555d0$6401a8c0@default> Message-ID: Michael, Turns out is was just bad networking. I definitely find that the makers and distributor of these big software packages can be very tight with allowing anyone to use their data. And as a developer I can appreciate their caution. But so much can be done for a customer in a customized manner that the "big boys" can't offer for all. Thanks for responding, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Friday, October 01, 2004 8:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access - Advantage - Mediwin ----- Original Message ----- From: "Bob Heygood" To: "Access Developers discussion and problem solving" Sent: Friday, October 01, 2004 10:37 AM Subject: [AccessD] Access - Advantage - Mediwin > hello to the list, > I created an app years ago that interfaced with the client's medical > practice software. > The software is Mediwin, which uses the Advantage db engine. > After an upgrade to the Mediwin version, my ODBC calls fail for "Can't lock > all records" message from Jet. Some pursuit of the ODBC help indicates that > a network failure could also be an issue. And sure enough, they had the > network guy in about the same time. > Very odd that I can still link to the table of interest sometimes and even > export to Excel, but can't open the table in datasheet view nor successfully > run any of my code. Bob, I am working with another medical practice software called DME VI (formerly Dezine) whose creators have decided to make their own data definition files and ODBC drivers to prevent linking to their tables without paying first. I wouldn't be surprised if this has/will become a standard practice in the medical software industry. You may want to check if that's the wall you've run into. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Mon Nov 1 09:09:07 2004 From: bheygood at abestsystems.com (Bob Heygood) Date: Mon, 1 Nov 2004 07:09:07 -0800 Subject: [AccessD] Access - Advantage - Mediwin In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677217FF76@corp-es01.fleetpride.com> Message-ID: Jim, Turns out it was just bad network settings during the upgrade. Thanks for responding. best, bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hale, Jim Sent: Friday, October 01, 2004 9:03 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access - Advantage - Mediwin I recall a similar problem several years with an ODBC driver that interfaced with a package that used Foxpro. When the package was updated the driver quite working. The solution was to get an updated ODBC driver. HTH Jim Hale -----Original Message----- From: Bob Heygood [mailto:bheygood at abestsystems.com] Sent: Friday, October 01, 2004 9:37 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access - Advantage - Mediwin hello to the list, I created an app years ago that interfaced with the client's medical practice software. The software is Mediwin, which uses the Advantage db engine. After an upgrade to the Mediwin version, my ODBC calls fail for "Can't lock all records" message from Jet. Some pursuit of the ODBC help indicates that a network failure could also be an issue. And sure enough, they had the network guy in about the same time. Very odd that I can still link to the table of interest sometimes and even export to Excel, but can't open the table in datasheet view nor successfully run any of my code. Naturally, no one thought to let me know that the upgrade was happening. And I am concerned that the vendor of the Mediwin software is not being helpful because they would love to recreate most of my work themselves. And of course, the client is now 10 days behind in sending out correspondence that should have been done automatically from my program thru Word.... So, any insight/comments on ODBC, Advantage, Mediwin or a comforting word would be appreciated. best, bob accesspro at nospamcox.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 1 09:47:51 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 1 Nov 2004 07:47:51 -0800 Subject: [AccessD] Network issues PLEASE ADVISE References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: <039a01c4c02a$256df8a0$6701a8c0@HAL9002> Sander: What happens if you move the back end to a local machine, relink the tables? Does it open fast? Also, are you relinking the tables on open every time? Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "S D" To: Sent: Monday, November 01, 2004 6:24 AM Subject: [AccessD] Network issues PLEASE ADVISE > Hi group, > > I've got a MAJOR problem. > > I've got an A2K application with a BE and a FE. FE is installed on the > local machine and the BE is installed on the server. Using WinNT > Performance has always been soso. Not fast but not very slow either. > > Now we've migrated everything to A2k2 with WinXP. > > Performance is terrible times 10!! Opening the FE takes about 20-25 > minutes. Opening a linked table takes 9 minutes same goes for tables in > the FE itself. > > However, when I open the FE and if I open a table that is stored in the FE > it opens directly, no problem. When I then open a linked table => bang > back to 9 minutes per table (linked or not) > > Is it possible that this somehow has to do with A2k2?? I know in Access 2 > (that is two!!) you had to change OPENFILES parameter thingies somewhere. > Does Access 2002 also have such a setting that must be tweaked?? > > TIA > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at earthlink.net Mon Nov 1 10:00:36 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 11:00:36 -0500 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <20041101142425.31611.qmail@web61104.mail.yahoo.com> Message-ID: Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mark.breen at gmail.com Mon Nov 1 10:07:32 2004 From: mark.breen at gmail.com (Mark Breen) Date: Mon, 1 Nov 2004 16:07:32 +0000 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <039a01c4c02a$256df8a0$6701a8c0@HAL9002> References: <20041101142425.31611.qmail@web61104.mail.yahoo.com> <039a01c4c02a$256df8a0$6701a8c0@HAL9002> Message-ID: <26a96cce0411010807180529d3@mail.gmail.com> Hello Sander, I wrote an email about this roughly a year ago to the list. This is a documented aspect of the combination of what happens when you upgrade your server to Windows 2K. It effects programmetic links to back end databases. It specifically effects the linked table connection. There were two ways that I could see to fix it, 1) was to redesign my system so that I open a seperate db and provide programmatic accesss to the tables, this would eliminate the need to linked tables, they would become local tables that happened to the located on a different server, (local to the DAO object model that is). The second way to solve it was to just import the tables back into the front end and not use a FE / BE model. I was reluctant to do this, however, when I presented the option to the client, she was happy enough to do this. That was a year ago and i have had no problems with it since. The 'feature' is clearly documented on the knowledge base and when I looked at it, MS had said that they had no intention to resolve this issue. You are welcome to see if that has changed. Best of luck with it. BTW, this issue did only effected databases with programmatic control of the linked tables. If you have a database (even a hugh one), that just connects uning linked forms etc, then you will have no problem. Best of luck with it, Mark Breen Ireland On Mon, 1 Nov 2004 07:47:51 -0800, Rocky Smolin - Beach Access Software wrote: > Sander: > > What happens if you move the back end to a local machine, relink the tables? > Does it open fast? > > Also, are you relinking the tables on open every time? > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > > > ----- Original Message ----- > From: "S D" > To: > Sent: Monday, November 01, 2004 6:24 AM > Subject: [AccessD] Network issues PLEASE ADVISE > > > Hi group, > > > > I've got a MAJOR problem. > > > > I've got an A2K application with a BE and a FE. FE is installed on the > > local machine and the BE is installed on the server. Using WinNT > > Performance has always been soso. Not fast but not very slow either. > > > > Now we've migrated everything to A2k2 with WinXP. > > > > Performance is terrible times 10!! Opening the FE takes about 20-25 > > minutes. Opening a linked table takes 9 minutes same goes for tables in > > the FE itself. > > > > However, when I open the FE and if I open a table that is stored in the FE > > it opens directly, no problem. When I then open a linked table => bang > > back to 9 minutes per table (linked or not) > > > > Is it possible that this somehow has to do with A2k2?? I know in Access 2 > > (that is two!!) you had to change OPENFILES parameter thingies somewhere. > > Does Access 2002 also have such a setting that must be tweaked?? > > > > TIA > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Address AutoComplete - You start. We finish. > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Jim.Hale at FleetPride.com Mon Nov 1 10:51:31 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 1 Nov 2004 10:51:31 -0600 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From lists at theopg.com Mon Nov 1 11:01:01 2004 From: lists at theopg.com (MarkH) Date: Mon, 1 Nov 2004 17:01:01 -0000 Subject: [AccessD] Retrieve a file types default icon for use with treeview In-Reply-To: Message-ID: <001001c4c034$5d889100$9139fc3e@netboxxp> Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From BBarabash at TappeConstruction.com Mon Nov 1 11:17:32 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 1 Nov 2004 11:17:32 -0600 Subject: [AccessD] Retrieve a file types default icon for use with treeview Message-ID: <100F91B31300334B89EC531C9DCB0865318D81@tccexch01.tappeconstruction.net> I have a VB6 sample that I downloaded from Planet Source Code. Should be easy enough to tailor to work in AccessXP: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=13803& lngWId=1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Monday, November 01, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Retrieve a file types default icon for use with treeview Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Nov 1 11:23:12 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 1 Nov 2004 18:23:12 +0100 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54AF@stekelbes.ithelps.local> There is a well known issue what concerns re-linking slowness for tables in a BE on a network server. This can be easely solved by keeping a reference open to the backend. This will speed up you linking to the backend but also opening forms, tables etc. Just keep a reference to the backend as long as the application is open. Close it when closing Access. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 01, 2004 5:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jimdettman at earthlink.net Mon Nov 1 11:35:50 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 1 Nov 2004 12:35:50 -0500 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> Message-ID: Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Patricia.O'Connor at dfa.state.ny.us Mon Nov 1 11:36:01 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 1 Nov 2004 12:36:01 -0500 Subject: [AccessD] compare record fields Message-ID: I don't know whether you received an answer for this In sql you would Select field(s) >From x Where x.field1 <> x.field2 Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > pedro at plex.nl > Sent: Wednesday, October 27, 2004 08:33 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] compare record fields > > Hello Group, > > i have a table in which i would compare two fields in one > record with each other. > The result must be the record where one of the values don't > match with one another. > > fieldA fieldB and several other fields > 00123 00123 > 02345 02345 > 06789 06689 > > > result > > fieldA fieldB and several other fields > 06789 06689 > > > Is this possible. > > Thanks > > Pedro Janssen > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From lists at theopg.com Mon Nov 1 11:48:55 2004 From: lists at theopg.com (MarkH) Date: Mon, 1 Nov 2004 17:48:55 -0000 Subject: [AccessD] Retrieve a file types default icon for use with treeview In-Reply-To: <100F91B31300334B89EC531C9DCB0865318D81@tccexch01.tappeconstruction.net> Message-ID: <001701c4c03b$0e888d10$9139fc3e@netboxxp> Excellent... Thanks Brett Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: 01 November 2004 17:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Retrieve a file types default icon for use with treeview I have a VB6 sample that I downloaded from Planet Source Code. Should be easy enough to tailor to work in AccessXP: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=13803& lngWId=1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Monday, November 01, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Retrieve a file types default icon for use with treeview Hello All... Using Access XP with Windows XP I have a treeview which includes branches representing external files (.doc, .xls, .jpg etc.), I would like the icon displayed for these branches to be the same as the one you would see in Explorer. I would like to avoid hard-coding the icons into an image control as the file records can be of any type, also in the case of MS Office for example, the icons can change according to the applications version. Anyone know how I can get at the default icon for a given type in a way which I can use dynamically with an image control and treeview? Even if it was only for MS Office file types??? Thanks in advance :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 ------------------------------------------------------------------------ -------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From handyman at actcom.co.il Mon Nov 1 11:59:44 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Mon, 01 Nov 2004 19:59:44 +0200 Subject: [AccessD] Caller ID and Access Message-ID: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Hi, I'm interested in somehow retrieving a CallerID number from my modem, and then displaying the caller's information(taken from my database) on screen. Has anyone ever done anything like this, or can point me in the right direction Thanks, Gershon Markowitz mailto:Handyman at actcom.co.il From accessd at shaw.ca Mon Nov 1 13:00:14 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 01 Nov 2004 11:00:14 -0800 Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E4@corp-es01.fleetpride.com> Message-ID: Jim: Just a comment. I have heard of a number virus have been reported to be able to totally clobber Nortons Virus protection, if it can not catch the invading Virus/Trojan before it has a chance to start. Hence the reason for Norton's immediate virus scan. You can download a small program that lists all the auto-startup programs and will allow you to find and re-set them. Can also be used to catch the occasional Trojan that may have crept on to your system: http://www.cybertechhelp.com/html/downloads/download.php/id/37 HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hale, Jim Sent: Monday, November 01, 2004 8:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Mon Nov 1 13:00:11 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 11:00:11 -0800 Subject: [AccessD] Caller ID and Access References: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Message-ID: <418687BB.3060008@shaw.ca> From a few years back You will have to use TAPI, your modem need's to support caller ID Ughh, you are in Italy so you may have to check the format of caller id North America had half a dozen standards from the various Telco's in Mid 90's It was a mess. It is essentially about 55 bytes of data being sent between the first and second ring of the phone It can be more data, there are a couple of formats some included the callers name and blocking info in addition to the number. I can't remember if there is now an established ISO standard I did this back in 99. What I would do is try the trial version of Mountain Sys on your telephone system and modem It is only $15 a client, but you could roll your own code via Tapi after getting a format from your Telco but maybe they have standardized format by now in Italy. Companies that seem to handle callerid connections to Access. Mountain Systems http://www.mtnsys.com CallAudit Software has sample Access 97 & 95 database with trial software that connects thru DDE. There are a lot of others. -------------------------------------------------------------------- From Mountain System FAQ buried in there How to Test a MODEM for Caller ID Support Caveats. Necessary equipment * Caller ID Service From your local telephone company * A Voice MODEM or hardware device that supports Caller ID Just about every MODEM disables Caller ID as the default. For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable Caller ID. If Caller ID is not working, you will only see the word RING for each incoming ring. The most common result, when Caller ID data works, is the following: RING DATE = xxxxx TIME = xxxx NMBR = xxxxxxxxx NAME = xxxxxxxx RING RING … There are other formats as well. The key point is that other data generally appears between the first and second rings. Some telephone companies, especially in Canada, ship Caller ID data in different formats, Check the software handles this. TAPI support for Caller ID was added after Windows 95 was released. Microsoft has an updated version of UniModemV on their Web page that includes Caller ID support. The .INF file for your MODEM also needs to modified to take advantage of this support, and some modems do not yet have this capability. Windows NT 3.X does not include any support for TAPI. Although Windows NT 4.0 does. handyman at actcom.co.il wrote: > Hi, > > I'm interested in somehow retrieving a CallerID number from my modem, > and then displaying the caller's information(taken from my database) > on screen. Has anyone ever done anything like this, or can point me > in the right direction > > Thanks, > > Gershon Markowitz > mailto:Handyman at actcom.co.il > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Mon Nov 1 14:49:49 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 1 Nov 2004 14:49:49 -0600 Subject: [AccessD] Network issues PLEASE ADVISE Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723371E5@corp-es01.fleetpride.com> Thanks, I'll give it a try at home tonight. Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at colbyconsulting.com Mon Nov 1 17:29:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 01 Nov 2004 18:29:04 -0500 Subject: [AccessD] access security In-Reply-To: <00ef01c4bdc7$26daedc0$45c2f63f@Desktop> Message-ID: <000101c4c06a$a11a7ab0$e8dafea9@ColbyM6805> One thing you should do is set up relationships with child tables, then turn cascade delete off. This will prevent this in some instances. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Eget Sent: Friday, October 29, 2004 10:54 AM To: AccessD at databaseadvisors.com Subject: [AccessD] access security I am trying to fix a security issue at my site. My managers like to edit or delete records that they think are inappropriate in a product audit database and usually fail to inform anyone of this. I have locked them out of the backend access by the front end with the directory properties of windows for the back end. But this also does not allow them to enter records either. But I would also like to take one step further and not allow individuals that are entering records into the database from either deleting or editing other individual records. Can anyone share with me how they may have done this in the past? Thanks in advance John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Nov 1 19:14:19 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Tue, 2 Nov 2004 11:14:19 +1000 Subject: [AccessD] CurrentDB Error References: Message-ID: <009601c4c079$47c1de40$fa10a8c0@Albatross> The DAO reference is not broken. Reference is to Microsoft DAO 3.6 Object library The actual file is C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL Since the Access97 apps have been stable for a long time, my line of thinking is that some how the DAO360.DLL file has been updated either by installed another program, doing a microsoft update etc. So I searched all instances of DAO360.dll and placed an earlier build version in the folder. Same result. I have now compared similar Access97 application installed on another WinXP box. These apps have reference to DAO3.51 So somehow at some point what must have happened on the problem workstation is similar to what is described by Microsoft in one of their KB articles. Microsoft KB303829 describes the occurrance of exactly this error message (Compile Error: Function or interface marked as restricted, or the function uses Automation type not supported in Visual Basic.) after having updated the workstation to Microsoft Windows 2000. Here's the article pointer: http://support.microsoft.com/default.aspx?scid=kb;en-us;303829 In a nutshell: When installing Windows 2000 an Access97 gets into trouble: "because during Windows2000 installation, the windows registry registers DAO3.60 and updates the reference in Access97 to DAO 3.60. Windows also removes the registration for DAO3.51" Nice eh? Really .... nice!! Microsoft's suggested action is to register DAO3.51 again using the regsvr32.exe Now, what I'd like to know is : Is DAO3.60 not compatible with Access97 Should you only use DAO3.51 ?? Secondly, how do you register DAO3.51 back into the registry?? I cannot use regsrv32 on WinXP. Is this another subtle attempt by Microsoft to abandon older M$ software? Enough! In summary: Can some one please give me the recipe for registering DAO3.51 in WinXP? Regards Borge Gold Coast, Australia ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, November 01, 2004 10:57 PM Subject: RE: [AccessD] CurrentDB Error > > The DAO reference may be broken. Open a module in design view, click > tools/references. See if it's listed as MISSING or BROKEN. If it is, most > likely you'll simply need to re-register it with regsvr32.exe > > I none are listed missing or broken, check any reference that is not > currently checked, close the MDB and Access, re-open and uncheck the > reference you just checked. Then try a compile. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen > Hansen > Sent: Sunday, October 31, 2004 9:51 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] CurrentDB Error > > > Hi, > I have a some Access97 database applications that have been working for > years. > They are currently sitting on WinXP with AccessXP installed as well. > > Been working on the XP box for over a year! > > Recently when making a minor modification and doing a 'Compile and Save' I > get the following message on the first instance of CurrentDb > > Compile Error: > Funtion or interface marked as restricted, or the function uses Automation > type not supported in Visual Basic. > > I have reference to Microsoft DAO Object Library 3.6 > The dao.dll is version 03.60.8618.0 > > Even if I try to disambiguate the thing, the compile error comes up: > > like: > > dim db as DAO.Database > set db = CurrentDb > > when compiling it will error on the set db = CurrentDb line. > > Can anyone help me to shed light on what is going on? > > > Regards > Borge > Gold Coast, Australia > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From pcs at azizaz.com Mon Nov 1 19:54:20 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Tue, 2 Nov 2004 11:54:20 +1000 Subject: Fw: [AccessD] CurrentDB Error - Solved! Message-ID: <000901c4c07e$df13de10$fa10a8c0@Albatross> Managed to register dao350.dll using the regsrv32.exe "path\dao350.dll" command. After deselectiong "Microsoft DAO 3.6" and selecting "Microsoft DAO 3.51" in the reference section My Access97 apps are up and running again! Regards Borge ----- Original Message ----- From: "Borge Steen Hansen" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 02, 2004 11:14 AM Subject: Re: [AccessD] CurrentDB Error > > In summary: Can some one please give me the recipe for registering DAO3.51 > in WinXP? > > Regards > Borge > Gold Coast, Australia > > --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From accessd at shaw.ca Mon Nov 1 21:03:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 01 Nov 2004 19:03:16 -0800 Subject: [AccessD] CurrentDB Error In-Reply-To: <009601c4c079$47c1de40$fa10a8c0@Albatross> Message-ID: Hi Borge: Try something like: c:\MyWindowsDirectory\(system or system32)\regsrv32 -u DAO360.DLL to check that is removed or not improperly registered and then c:\MyWindowsDirectory\(system or system32)\regsrv32 C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL To register the dll. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen Hansen Sent: Monday, November 01, 2004 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CurrentDB Error The DAO reference is not broken. Reference is to Microsoft DAO 3.6 Object library The actual file is C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL Since the Access97 apps have been stable for a long time, my line of thinking is that some how the DAO360.DLL file has been updated either by installed another program, doing a microsoft update etc. So I searched all instances of DAO360.dll and placed an earlier build version in the folder. Same result. I have now compared similar Access97 application installed on another WinXP box. These apps have reference to DAO3.51 So somehow at some point what must have happened on the problem workstation is similar to what is described by Microsoft in one of their KB articles. Microsoft KB303829 describes the occurrance of exactly this error message (Compile Error: Function or interface marked as restricted, or the function uses Automation type not supported in Visual Basic.) after having updated the workstation to Microsoft Windows 2000. Here's the article pointer: http://support.microsoft.com/default.aspx?scid=kb;en-us;303829 In a nutshell: When installing Windows 2000 an Access97 gets into trouble: "because during Windows2000 installation, the windows registry registers DAO3.60 and updates the reference in Access97 to DAO 3.60. Windows also removes the registration for DAO3.51" Nice eh? Really .... nice!! Microsoft's suggested action is to register DAO3.51 again using the regsvr32.exe Now, what I'd like to know is : Is DAO3.60 not compatible with Access97 Should you only use DAO3.51 ?? Secondly, how do you register DAO3.51 back into the registry?? I cannot use regsrv32 on WinXP. Is this another subtle attempt by Microsoft to abandon older M$ software? Enough! In summary: Can some one please give me the recipe for registering DAO3.51 in WinXP? Regards Borge Gold Coast, Australia ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, November 01, 2004 10:57 PM Subject: RE: [AccessD] CurrentDB Error > > The DAO reference may be broken. Open a module in design view, click > tools/references. See if it's listed as MISSING or BROKEN. If it is, most > likely you'll simply need to re-register it with regsvr32.exe > > I none are listed missing or broken, check any reference that is not > currently checked, close the MDB and Access, re-open and uncheck the > reference you just checked. Then try a compile. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Steen > Hansen > Sent: Sunday, October 31, 2004 9:51 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] CurrentDB Error > > > Hi, > I have a some Access97 database applications that have been working for > years. > They are currently sitting on WinXP with AccessXP installed as well. > > Been working on the XP box for over a year! > > Recently when making a minor modification and doing a 'Compile and Save' I > get the following message on the first instance of CurrentDb > > Compile Error: > Funtion or interface marked as restricted, or the function uses Automation > type not supported in Visual Basic. > > I have reference to Microsoft DAO Object Library 3.6 > The dao.dll is version 03.60.8618.0 > > Even if I try to disambiguate the thing, the compile error comes up: > > like: > > dim db as DAO.Database > set db = CurrentDb > > when compiling it will error on the set db = CurrentDb line. > > Can anyone help me to shed light on what is going on? > > > Regards > Borge > Gold Coast, Australia > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Nov 1 22:04:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 20:04:57 -0800 Subject: Fw: [AccessD] CurrentDB Error - Solved! References: <000901c4c07e$df13de10$fa10a8c0@Albatross> Message-ID: <41870769.5030305@shaw.ca> I have been using DAO360.dll for a couple of years on Access 97 with no problems This is version 3.60.8618.0. I believe Jet SP 8. SP4 though 6 had a lot of problems. You may have Unicode problems with 3.51 since it is ANSI based. Borge Steen Hansen wrote: >Managed to register dao350.dll using >the >regsrv32.exe "path\dao350.dll" >command. > >After deselectiong "Microsoft DAO 3.6" and selecting "Microsoft DAO 3.51" in >the reference section My Access97 apps are up and running again! > >Regards >Borge > >----- Original Message ----- >From: "Borge Steen Hansen" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, November 02, 2004 11:14 AM >Subject: Re: [AccessD] CurrentDB Error > > > > >>In summary: Can some one please give me the recipe for registering DAO3.51 >>in WinXP? >> >>Regards >>Borge >>Gold Coast, Australia >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Tue Nov 2 00:56:18 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 1 Nov 2004 22:56:18 -0800 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <41870769.5030305@shaw.ca> Message-ID: <200411020656.iA26u9L27038@databaseadvisors.com> I may be picking up an assignment that sounds like an Access front end into SQL tables. I am waiting to hear from the project manager for the more details you all will ask me for. Is there any major difference between access tables and SQL tables I should be aware of? I think I do good table design, normalization and naming conventions. thanks Joe Hecht jmhla at earthlink.net 28g From martyconnelly at shaw.ca Tue Nov 2 01:24:41 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Nov 2004 23:24:41 -0800 Subject: [AccessD] SQL Tables vs. Access Tables References: <200411020656.iA26u9L27038@databaseadvisors.com> Message-ID: <41873639.8030103@shaw.ca> Just for starters the data types are just different enough to be a nuisance See this comparision table http://www.able-consulting.com/ADODataTypeEnum.htm Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > -- Marty Connelly Victoria, B.C. Canada From accessd667 at yahoo.com Tue Nov 2 02:36:28 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 00:36:28 -0800 (PST) Subject: [AccessD] Network issues PLEASE ADVISE In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723371E5@corp-es01.fleetpride.com> Message-ID: <20041102083628.85337.qmail@web61105.mail.yahoo.com> Thnx for all the great tips!! I'm going to try them, ask around about the virusscan, etc. I've got a s##t load of work to do again ;-) "Hale, Jim" wrote: Thanks, I'll give it a try at home tonight. Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 11:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Jim, 1. Open NSW. 2. Click Options, Norton Anti-virus. 3. Under "Which file types to scan for viruses", select "Scan Files using Smart Scan", then click customize. 4. Scroll to MDB, then click remove. Do this under manual scan as well or for manual scan, add MDB to the exclusions list. 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 Hale, Jim Sent: Monday, November 01, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Network issues PLEASE ADVISE This drives me nuts. I have Norton System works and it virus scans all office files. I have been totally unable to turn it off. Do you know the secret? Maybe an exorcist? Jim Hale -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, November 01, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Network issues PLEASE ADVISE Couple tips here: 1. Make sure all MDB/MDE's are in the same format (JET 3.x vs 4.0) 2. *Always* keep a connection to the BE database while the FE is open. I do this by opening a hidden form bound to a table in the BE right at startup and close it when the app exits. This is critical. 3. Make sure the files are not being virus scanned at startup. 4. Turn off OPLOCKS (Opportunistic Locking) on the server. 5. Turn off sub datasheets 6. Turn off name autocorrect 7. Make sure all users have full read/write/delete priv for the directory where the MDB resides. 8. Make sure your distributing a compiled FE to clients. 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 S D Sent: Monday, November 01, 2004 9:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Network issues PLEASE ADVISE Hi group, I've got a MAJOR problem. I've got an A2K application with a BE and a FE. FE is installed on the local machine and the BE is installed on the server. Using WinNT Performance has always been soso. Not fast but not very slow either. Now we've migrated everything to A2k2 with WinXP. Performance is terrible times 10!! Opening the FE takes about 20-25 minutes. Opening a linked table takes 9 minutes same goes for tables in the FE itself. However, when I open the FE and if I open a table that is stored in the FE it opens directly, no problem. When I then open a linked table => bang back to 9 minutes per table (linked or not) Is it possible that this somehow has to do with A2k2?? I know in Access 2 (that is two!!) you had to change OPENFILES parameter thingies somewhere. Does Access 2002 also have such a setting that must be tweaked?? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd667 at yahoo.com Tue Nov 2 04:15:16 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 02:15:16 -0800 (PST) Subject: [AccessD] CheckDate? Message-ID: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Hi group, I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. TIA Sander If Not IsNull(txtExportDate) Then 'Check month part If Mid(txtExportDate, 4, 2) > 12 Then 'incorrect date! Else blnDate = True End If 'Check day part Select Case Left(txtExportDate, 2) Case 31 If (Mid(txtExportDate, 4, 2) = 1) Or _ (Mid(txtExportDate, 4, 2) = 3) Or _ (Mid(txtExportDate, 4, 2) = 5) Or _ (Mid(txtExportDate, 4, 2) = 7) Or _ (Mid(txtExportDate, 4, 2) = 8) Or _ (Mid(txtExportDate, 4, 2) = 10) Or _ (Mid(txtExportDate, 4, 2) = 12) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 30 If (Mid(txtExportDate, 4, 2) = 4) Or _ (Mid(txtExportDate, 4, 2) = 6) Or _ (Mid(txtExportDate, 4, 2) = 9) Or _ (Mid(txtExportDate, 4, 2) = 11) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 28 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'correct date blnDate = True Else 'incorrectdate blnDate = False End If Case 1 To 27 'correct day - month combi blnDate = True Case 29 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'incorrect date blnDate = False Else 'correctdate blnDate = True End If Case Else blnDate = False End Select Else 'Null date Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ vbExclamation, "Onjuiste datum") txtExportDate.SetFocus Exit Sub End If If Not blnDate Then Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ & vbCrLf & "" _ , vbCritical, "Onjuiste datum") txtExportDate.SetFocus Exit Sub Else --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From gustav at cactus.dk Tue Nov 2 04:45:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 11:45:55 +0100 Subject: [AccessD] CheckDate? In-Reply-To: <20041102101516.73568.qmail@web61109.mail.yahoo.com> References: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Message-ID: <18110481571.20041102114555@cactus.dk> Hi Sander If you operate with one format only (dd-mm-yyyy) then you can follow this route: 1. Check that it represents a valid date with IsDate(txtExportDate) 2. If so, convert to date and reformat: datDate = CDate(txtExportDate) strDate = Format(datDate, "dd-mm-yyyy") Now, compare the strings: If StrComp(txtExportDate, strDate) = 0 Then ' Date string is OK. End If The last step may not be necessary as it will insist on date strings like 02-09-2004 where 2-9-04 would be valid as well. The reformat, though, is needed to catch strings like 12-20-2004 which IsDate() accepts as 20-12-2004. /gustav > I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. > TIA > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else From d.dick at uws.edu.au Tue Nov 2 05:15:43 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 2 Nov 2004 22:15:43 +1100 Subject: [AccessD] A2K: Currency as a percentage Message-ID: Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? many thanks in advance Darren From gustav at cactus.dk Tue Nov 2 05:30:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 12:30:17 +0100 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: References: Message-ID: <11613143709.20041102123017@cactus.dk> Hi Darren You divide 5 by 100 (=0.05 as "per cent" = "per hundred") and multiply that with the amount: 100 x 0.05 = 5.00 /gustav > Hello all > Can never remember how to do percentages off the top of my head > I have a a form that allows users to put in any Dollar amount for a discount > I also want to put in another txtBox and allow users to type in say...5 and > have the machine calculate discounts in Dollars from the "5" value > Thus have access caculate (in this case) 5 percent of the whole and then put > that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount > field > Make sense? > many thanks in advance > Darren From deanellis at iprimus.com.au Tue Nov 2 05:10:11 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Tue, 2 Nov 2004 21:40:11 +1030 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: Message-ID: Dazza, The formula is fairly simple. Just divide 5 (being the percentage) by 100 and multiply it by the dollar amount. This will give the percentage og the dollar amount in dollars. Putting it into context. Percent field = txtpercent Dollar field = txtdollar discount field = txtdiscount txtdiscount = txtdollar * (txtpercent/100) Cheers Dean -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, 2 November 2004 9:46 PM To: AccessD List Subject: [AccessD] A2K: Currency as a percentage Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Tue Nov 2 07:02:08 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 05:02:08 -0800 (PST) Subject: [AccessD] CheckDate? In-Reply-To: <18110481571.20041102114555@cactus.dk> Message-ID: <20041102130208.18853.qmail@web61108.mail.yahoo.com> Thnx Gustav (as always) However, I added some extra checks to rule out 'impossible dates' like 29,30 or 31 februari, 31 november, etc. Gustav Brock wrote: Hi Sander If you operate with one format only (dd-mm-yyyy) then you can follow this route: 1. Check that it represents a valid date with IsDate(txtExportDate) 2. If so, convert to date and reformat: datDate = CDate(txtExportDate) strDate = Format(datDate, "dd-mm-yyyy") Now, compare the strings: If StrComp(txtExportDate, strDate) = 0 Then ' Date string is OK. End If The last step may not be necessary as it will insist on date strings like 02-09-2004 where 2-9-04 would be valid as well. The reformat, though, is needed to catch strings like 12-20-2004 which IsDate() accepts as 20-12-2004. /gustav > I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. > TIA > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From accessd667 at yahoo.com Tue Nov 2 07:08:11 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 05:08:11 -0800 (PST) Subject: [AccessD] frmCalendar from ADHB2K? Message-ID: <20041102130811.58524.qmail@web61105.mail.yahoo.com> Hi group, I'm using the form frmCalendar from the ADHB 2k in an app i'm using. However it seems that I cannot use the TAB-key to navigate through the form?!?! Why is that? I already checked TabStop and TabIndex and these properties are correct. TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From gustav at cactus.dk Tue Nov 2 07:19:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 14:19:52 +0100 Subject: [AccessD] CheckDate? In-Reply-To: <20041102130208.18853.qmail@web61108.mail.yahoo.com> References: <20041102130208.18853.qmail@web61108.mail.yahoo.com> Message-ID: <17619718283.20041102141952@cactus.dk> Hi Sander > However, I added some extra checks to rule out 'impossible dates' > like 29,30 or 31 februari, 31 november, etc. Well, that's the point - IsDate() checks that as well! Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. /gustav From lmrazek at lcm-res.com Tue Nov 2 08:16:40 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Tue, 2 Nov 2004 08:16:40 -0600 Subject: [AccessD] Report Orientation Changing on Terminal Server In-Reply-To: <17619718283.20041102141952@cactus.dk> Message-ID: <200411020916925.SM01564@hplaptop> Greetings: I have an app that is accessed via Terminal Server (Access XP Frontend, Runtime), and have found that it is changing all of my reports to Portrait from Landscape. Is there a workaround for this? I've tried to add the following code to report's "report_open" property: Me.Printer.Orientation = acPRORLandscape But this code only works when you open the report, close the report, then reopen. Has anyone else experienced this? Any hints? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From cyx5 at cdc.gov Tue Nov 2 08:26:42 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 09:26:42 -0500 Subject: [AccessD] Report Orientation Changing on Terminal Server Message-ID: If this is an older version of Access, there is a *nasty* bug - on the general tab of the database - TOOLS OPTIONS GENERAL, if the Track Name Auto Correct Info is checked as true, Access then opens up the reports using the default options for each user. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, November 02, 2004 9:17 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Orientation Changing on Terminal Server Greetings: I have an app that is accessed via Terminal Server (Access XP Frontend, Runtime), and have found that it is changing all of my reports to Portrait from Landscape. Is there a workaround for this? I've tried to add the following code to report's "report_open" property: Me.Printer.Orientation = acPRORLandscape But this code only works when you open the report, close the report, then reopen. Has anyone else experienced this? Any hints? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Tue Nov 2 08:54:48 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 09:54:48 -0500 Subject: [AccessD] Comparing Values of Fields Message-ID: We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... From roz.clarke at donnslaw.co.uk Tue Nov 2 09:14:31 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 2 Nov 2004 15:14:31 -0000 Subject: [AccessD] Comparing Values of Fields Message-ID: <61F915314798D311A2F800A0C9C8318805CED744@dibble.observatory.donnslaw.co.uk> When I needed to do this is did it in DAO (it was a while ago). I don't have time to hunt the code out, but basically if you open a recordset for each table you can then loop through the first recordset, finding the matching row in the 2nd recordset, and then (if the fields are in the same order) simply loop through the fields collection of both recordsets looking for non-matching fields. Where you get a mismatch you can output the values of both fields to a temp table. Then move on to the next row in rs1 and so forth. HTH Roz -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 14:55 To: accessd at databaseadvisors.com Subject: [AccessD] Comparing Values of Fields We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From JColby at dispec.com Tue Nov 2 09:37:00 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 10:37:00 -0500 Subject: [AccessD] Comparing Values of Fields Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF948@DISABILITYINS01> IN SQL you can do this using aliased fields to find the differences: SELECT MyFld1, TheirFld1, NoMathcFld1: MyFld1 <> TheirFld1, MyFld2, TheirFld2, NoMathcFld2: MyFld2 <> TheirFld2, .... Thus any true in any NoMatchFldX is a place where the field values don't match. In the where clause do a huge NoMatchFld1 OR NoMatchFld2 etc to pull all such records. Now you have all of the records with some field that doesn't match and indicator flags telling you which field(s). I am confident you can take it from there. ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Tuesday, November 02, 2004 9:55 AM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing Values of Fields We are maintaining a parts database. I have the master parts database for manufacturers in a table named tblParts. The manufacturer submits to us an updated parts list in a table named tblMrfParts. tblParts contains 25 fields. tblMfrParts contains the same 25 fields. I need to compare the values in the 25 fields, tying part number to part number. If the value in the tblMfrParts is different for that part number for any field, show our database field value and the manufacturers field value. Suggestions? Come on, I answered a question today... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Nov 2 09:40:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 16:40:32 +0100 Subject: [AccessD] Comparing Values of Fields In-Reply-To: References: Message-ID: <17528158880.20041102164032@cactus.dk> Hi Karen Apart from the obvious (comparing each pair of fields in a query) you can calculate for each record an MD5 or SHA-256 hash value of a string build by concatenating the formatted values: http://www.frez.co.uk/freecode.htm#md5 The retrieve those records where the hash values don't match. You could also calculate the CRC value. /gustav > Date: 2004-11-02 15:54 > We are maintaining a parts database. I have the master parts database > for manufacturers in a table named tblParts. The manufacturer submits > to us an updated parts list in a table named tblMrfParts. > tblParts contains 25 fields. > tblMfrParts contains the same 25 fields. > I need to compare the values in the 25 fields, tying part number to part > number. If the value in the tblMfrParts is different for that part > number for any field, show our database field value and the > manufacturers field value. > Suggestions? Come on, I answered a question today... From JColby at dispec.com Tue Nov 2 10:51:33 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 11:51:33 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy From CMackin at quiznos.com Tue Nov 2 10:57:24 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Tue, 2 Nov 2004 09:57:24 -0700 Subject: [AccessD] TOP 1 kinda thing Message-ID: SELECT CLID, MIN(ATPID) AS MinATPID FROM WhateverTable GROUP BY CLID Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 02, 2004 9:52 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] TOP 1 kinda thing I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Nov 2 11:03:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Nov 2004 18:03:56 +0100 Subject: [AccessD] TOP 1 kinda thing In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF949@DISABILITYINS01> Message-ID: <14933162254.20041102180356@cactus.dk> Hi John How about a Group By CLID selecting MIN(ATPID)? /gustav > I have a situation where a claim can have more than one ATP > CLID ATPID > 1 1 > 1 2 > 1 3 > 2 4 > 2 5 > 3 6 > 3 7 > 3 8 > I need to select only the first ATPID such that the result set looks like: > CLID ATPID > 1 1 > 2 4 > 3 6 > Is it possible to do this directly in SQL? > John W. Colby > The DIS Database Guy From JColby at dispec.com Tue Nov 2 11:12:00 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 12:12:00 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94A@DISABILITYINS01> Thanks, that was what I was looking for. John W. Colby The DIS Database Guy -----Original Message----- From: Mackin, Christopher [mailto:CMackin at quiznos.com] Sent: Tuesday, November 02, 2004 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 1 kinda thing SELECT CLID, MIN(ATPID) AS MinATPID FROM WhateverTable GROUP BY CLID Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 02, 2004 9:52 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] TOP 1 kinda thing I have a situation where a claim can have more than one ATP CLID ATPID 1 1 1 2 1 3 2 4 2 5 3 6 3 7 3 8 I need to select only the first ATPID such that the result set looks like: CLID ATPID 1 1 2 4 3 6 Is it possible to do this directly in SQL? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 handyman at actcom.co.il Tue Nov 2 11:07:46 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 02 Nov 2004 19:07:46 +0200 Subject: [AccessD] Caller ID and Access In-Reply-To: <418687BB.3060008@shaw.ca> References: <5.1.0.14.2.20041101195250.05d6b300@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20041102190512.0291ad90@pop5.actcom.net.il> Thanks! This program from Mountain Systems seems to do a lot of the stuff I want. Since it stores all information in an Access database, I can just integrate it with my database with some work. Thanks again! gm At 11:00 AM, 11/1/2004 -0800, you wrote: > From a few years back >You will have to use TAPI, your modem need's to support caller ID >Ughh, you are in Italy so you may have to check the format of caller id >North America had half a dozen standards from the various Telco's in Mid 90's >It was a mess. >It is essentially about 55 bytes of data being sent between the first and >second ring of the phone >It can be more data, there are a couple of formats some included the >callers name and blocking info in addition to the number. >I can't remember if there is now an established ISO standard >I did this back in 99. > >What I would do is try the trial version of Mountain Sys on your telephone >system and modem >It is only $15 a client, but you could roll your own code via Tapi after >getting a format from your >Telco but maybe they have standardized format by now in Italy. > > Companies that seem to handle callerid connections to Access. > > Mountain Systems http://www.mtnsys.com > > CallAudit Software has sample Access 97 & 95 database with > trial software that connects thru DDE. > > There are a lot of others. > -------------------------------------------------------------------- > From Mountain System FAQ buried in there > >How to Test a MODEM for Caller ID Support >Caveats. > >Necessary equipment > > * Caller ID Service From your local telephone company > * A Voice MODEM or hardware device that supports Caller ID > > > Just about every MODEM disables Caller ID as the default. > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > Caller ID. > If Caller ID is not working, you will only see the word RING for > each incoming ring. > > The most common result, when Caller ID data works, is the following: > > RING > > DATE = xxxxx > > TIME = xxxx > > NMBR = xxxxxxxxx > > NAME = xxxxxxxx > > RING > > RING … > > There are other formats as well. The key point is that other data > generally appears between the first and second rings. > > Some telephone companies, especially in Canada, ship Caller ID data in > different formats, Check the software handles this. > > TAPI support for Caller ID was added after Windows 95 was released. > Microsoft has an updated version of UniModemV on their Web page that > includes Caller ID support. The .INF file for your MODEM also needs to > modified to take advantage of this support, and some modems do not > yet have this capability. > > Windows NT 3.X does not include any support for TAPI. Although Windows > NT 4.0 does. >handyman at actcom.co.il wrote: > >>Hi, >> >>I'm interested in somehow retrieving a CallerID number from my modem, and >>then displaying the caller's information(taken from my database) on >>screen. Has anyone ever done anything like this, or can point me in the >>right direction >> >>Thanks, >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From JColby at dispec.com Tue Nov 2 11:24:15 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 2 Nov 2004 12:24:15 -0500 Subject: [AccessD] TOP 1 kinda thing Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94B@DISABILITYINS01> Yep, that did it. Thanks. John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, November 02, 2004 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 1 kinda thing Hi John How about a Group By CLID selecting MIN(ATPID)? /gustav > I have a situation where a claim can have more than one ATP > CLID ATPID > 1 1 > 1 2 > 1 3 > 2 4 > 2 5 > 3 6 > 3 7 > 3 8 > I need to select only the first ATPID such that the result set looks like: > CLID ATPID > 1 1 > 2 4 > 3 6 > Is it possible to do this directly in SQL? > John W. Colby > The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mnptl at sonmedia.com Tue Nov 2 11:39:23 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 12:39:23 -0500 (EST) Subject: [AccessD] Time Synchronization Message-ID: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with naything ... yet ... Thanks, Mark Naud? From Patricia.O'Connor at dfa.state.ny.us Tue Nov 2 11:43:08 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 2 Nov 2004 12:43:08 -0500 Subject: [AccessD] Form design question Message-ID: I think you are talking about a continuous subform The main form would contain the order number, order date etc The subform would contain a line for each product, the quantity and amount. If you are looking at it for data entry, then you can use dropdown box that links to product table to select the product, etc. Hth Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > accma at sympatico.ca > Sent: Thursday, October 21, 2004 01:07 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Form design question > > Hi all, > > I'm wondering if it's possible to have multiple sections in a > forms like in a report. I don't exactly know how to explane > this so I'll demontrate it as best as I can. On a form, I > want to display all the products available. That form would > be the order entry form. What I would like to do is put > multiple column like this : product #, qt, price, product #, > qt, price, product #, qt, price. The second and third > "product #, qt, price" would be the continuing of the first column. > > Is this even possible and if so, how can I do this? > > Tanks! > > Annie > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Chris.Foote at uk.thalesgroup.com Tue Nov 2 12:16:29 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 2 Nov 2004 18:16:29 -0000 Subject: [AccessD] Time Synchronization Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote > -----Original Message----- > From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] > Sent: Tuesday, November 02, 2004 5:39 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Time Synchronization > > > Does anyone know of any VBA code to be placed within an > Access application > that can easily poll an Internet-based time server, and > return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > > Thanks, > > Mark Naud? > > > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Tue Nov 2 12:40:38 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 02 Nov 2004 13:40:38 -0500 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <200411020656.iA26u9L27038@databaseadvisors.com> References: <200411020656.iA26u9L27038@databaseadvisors.com> Message-ID: <4187D4A6.1090003@rogers.com> Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > I would suggest the following: 1. Design it in Access, where you're comfortable. Then use the upsizing wizard to move it to SS when you're ready. Make sure that every combo/list/form etc. uses a named query, NOT a select statement. To save yourself some issues down the road, where you would normally bind a form to a table, create a named query (even if it's nothing more than SELECT * FROM MyTable) for every form. This will save you a lot of hassle in the converted app. 2. Get a copy of SQL: Access to SQL Server, by our own Harkins and Reid. 3. Many of the things that we are comfortable in doing in Access are quite the wrong approach with SQL Server, in terms of best practices. This part cannot be communicated in a simple email message, but in general it reduces to this: the old practice of binding forms to tables is all wrong. Even if you substitute queries for the tables, if it's SELECT * it's all wrong (unless the table is very small). The number of times a user actually wants to see all the rows is relatively small. To give one example, a form showing Sales might start with a datasheet or continuous form that shows only the most important columns. Instead of showing all the sales, you might have 3 or 4 buttons on it, Sales30, Sales60, Sales90 and All. Each of these would change the data source to a stored procedure that says something like SELECT MyColumns FROM Sales WHERE SaleDate > GetDate() - 30. And so on. This results in lightning performance, which is usually demanded in a SQL Server app. 4. If all else fails, hire me. LOL. Arthur From prodevmg at yahoo.com Tue Nov 2 14:10:01 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 2 Nov 2004 12:10:01 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <20041102201001.60145.qmail@web20424.mail.yahoo.com> Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From mnptl at sonmedia.com Tue Nov 2 14:20:38 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 15:20:38 -0500 (EST) Subject: [AccessD] Time Synchronization In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Message-ID: <58926.10.235.219.133.1099426838.webmail@10.235.219.133> Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, that could take months! I'm currently assisting a pharmaceutical company with ensuring that they meet all FDA regulations, especially those concerning electronic records. The concept of handling their time synchronization in a centralized way is somewhat new, and will have to go up the chain of command to head office, mulled over, a policy put in place, local IT procedures created, and then the technical controls instituted... a very long process. I was hoping that there was something similar to: command.com /c net time \\ /set /y that could use for synchronizing the local machine's time to a "standard" clock available on the Internet, such as NIST. I tried the command above with: command.com /c net time \\129.6.15.28 /set /y ... (which is one of the NIST time server IP addresses) but with no success. It CAN be used for synchronizing with the back-end server, but I was hoping for something more thorough! Let me know if you know of any other way. Thanks, Mark -----Original Message----- From: "Foote, Chris" Subject: RE: [AccessD] Time Synchronization Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote -----Original Message----- Sent: Tuesday, November 02, 2004 5:39 PM Subject: [AccessD] Time Synchronization Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with anything ... yet ... From JHewson at karta.com Tue Nov 2 14:22:14 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 14:22:14 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6B@karta-exc-int.Karta.com> Lonnie, If you mean print from the preview, you'll need to have a custom menu. If you mean print from a button click without preview: DoCmd.OpenReport "SomeReport" works well. Did I miss something? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 2:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Nov 2 14:33:35 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 2 Nov 2004 14:33:35 -0600 Subject: [AccessD] Time Synchronization Message-ID: <123701F54509D9119A4F00D0B747349016D055@main2.marlow.com> I wrote a sync program in VB. You could use it in Access, just uses the Winsock control. Drew -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Tuesday, November 02, 2004 2:21 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Time Synchronization Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, that could take months! I'm currently assisting a pharmaceutical company with ensuring that they meet all FDA regulations, especially those concerning electronic records. The concept of handling their time synchronization in a centralized way is somewhat new, and will have to go up the chain of command to head office, mulled over, a policy put in place, local IT procedures created, and then the technical controls instituted... a very long process. I was hoping that there was something similar to: command.com /c net time \\ /set /y that could use for synchronizing the local machine's time to a "standard" clock available on the Internet, such as NIST. I tried the command above with: command.com /c net time \\129.6.15.28 /set /y ... (which is one of the NIST time server IP addresses) but with no success. It CAN be used for synchronizing with the back-end server, but I was hoping for something more thorough! Let me know if you know of any other way. Thanks, Mark -----Original Message----- From: "Foote, Chris" Subject: RE: [AccessD] Time Synchronization Hi Mark! Would it not be easier to synch the clock on the host machine with a NTP server and then get that via Date() Time() etc? Or does the time function need to be totally encapsulated in the Access app? Regards! Chris Foote -----Original Message----- Sent: Tuesday, November 02, 2004 5:39 PM Subject: [AccessD] Time Synchronization Does anyone know of any VBA code to be placed within an Access application that can easily poll an Internet-based time server, and return that time to a variable? Searching through the archives hasn't come up with anything ... yet ... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Nov 2 14:44:52 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 2 Nov 2004 15:44:52 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A0BB29@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB98F@ADGSERVER> Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Nov 2 14:44:11 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 Nov 2004 15:44:11 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2742@xlivmbx21.aig.com> I've not tried this out, but you can probably do this by previewing the report and displaying a small Pop-up form with the buttons needed to print, quit, save to file etc. I do this kind of thing in a 'normal' access project, with the Access window visible, opening the report with code like this... PrintPreview "SomeReport", me.Name While IsLoaded("PrintPreviewFrm") DoEvents Wend The routine PrintPreview takes the name of the report and the calling form as parameters and then opens the form PrintPreviewFrm which in turn opens the report in preview mode. The while loop then pauses the calling code until the form is closed. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: Tuesday, November 02, 2004 3:22 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Calling all Gurus - Hide Access Window > > Lonnie, > If you mean print from the preview, you'll need to have a custom menu. > If you mean print from a button click without preview: DoCmd.OpenReport > "SomeReport" works well. > Did I miss something? > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson > Sent: Tuesday, November 02, 2004 2:10 PM > To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; > AccessD solving' > Subject: [AccessD] Calling all Gurus - Hide Access Window > > > Hello all, > > I am using the popular API code that hides the access window and just > shows a form on the desktop. (Small snippet below) > > Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) > As Long > Dim dwReturn As Long > Const SW_HIDE = 0 > Const SW_SHOWNORMAL = 1 > Const SW_SHOWMINIMIZED = 2.... > > It is working fine except withe reports. I am even able to preview > reports. However, how do I print them? Has anyone worked this part out? > > I know there is an answer out there somewhere! > > Thanks in advance. > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 2 15:04:23 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 13:04:23 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 2 15:12:48 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 2 Nov 2004 22:12:48 +0100 Subject: [AccessD] Caller ID and Access Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54C5@stekelbes.ithelps.local> If you have ISDN you gonna need a ISDN card with CAPI support. There is some VB code out there to use CAPI in access. I have such an Access DB that use a CAPI control for wich the VB code was available. Dont know the website anymore, it was several years ago. This only works with ISDN and a CAPI supported card like Eicon Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, November 02, 2004 6:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Caller ID and Access Thanks! This program from Mountain Systems seems to do a lot of the stuff I want. Since it stores all information in an Access database, I can just integrate it with my database with some work. Thanks again! gm At 11:00 AM, 11/1/2004 -0800, you wrote: > From a few years back >You will have to use TAPI, your modem need's to support caller ID Ughh, >you are in Italy so you may have to check the format of caller id North >America had half a dozen standards from the various Telco's in Mid 90's >It was a mess. >It is essentially about 55 bytes of data being sent between the first >and second ring of the phone It can be more data, there are a couple >of formats some included the callers name and blocking info in addition >to the number. >I can't remember if there is now an established ISO standard I did this >back in 99. > >What I would do is try the trial version of Mountain Sys on your >telephone system and modem It is only $15 a client, but you could roll >your own code via Tapi after getting a format from your Telco but maybe >they have standardized format by now in Italy. > > Companies that seem to handle callerid connections to Access. > > Mountain Systems http://www.mtnsys.com > > CallAudit Software has sample Access 97 & 95 database with > trial software that connects thru DDE. > > There are a lot of others. > -------------------------------------------------------------------- > From Mountain System FAQ buried in there > >How to Test a MODEM for Caller ID Support Caveats. > >Necessary equipment > > * Caller ID Service From your local telephone company > * A Voice MODEM or hardware device that supports Caller ID > > > Just about every MODEM disables Caller ID as the default. > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > Caller ID. > If Caller ID is not working, you will only see the word RING for > each incoming ring. > > The most common result, when Caller ID data works, is the following: > > RING > > DATE = xxxxx > > TIME = xxxx > > NMBR = xxxxxxxxx > > NAME = xxxxxxxx > > RING > > RING … > > There are other formats as well. The key point is that other data > generally appears between the first and second rings. > > Some telephone companies, especially in Canada, ship Caller ID data in > different formats, Check the software handles this. > > TAPI support for Caller ID was added after Windows 95 was released. > Microsoft has an updated version of UniModemV on their Web page that > includes Caller ID support. The .INF file for your MODEM also needs to > modified to take advantage of this support, and some modems do not > yet have this capability. > > Windows NT 3.X does not include any support for TAPI. Although >Windows > NT 4.0 does. >handyman at actcom.co.il wrote: > >>Hi, >> >>I'm interested in somehow retrieving a CallerID number from my modem, >>and then displaying the caller's information(taken from my database) >>on screen. Has anyone ever done anything like this, or can point me >>in the right direction >> >>Thanks, >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Tue Nov 2 15:13:53 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 2 Nov 2004 13:13:53 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: Message-ID: <20041102211353.70465.qmail@web20424.mail.yahoo.com> Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From stuart at lexacorp.com.pg Tue Nov 2 15:42:41 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Nov 2004 07:42:41 +1000 Subject: [AccessD] Time Synchronization In-Reply-To: <58926.10.235.219.133.1099426838.webmail@10.235.219.133> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C433@ntscxch1.int.rdel.co.uk> Message-ID: <41888BF1.20826.E4E5F62@lexacorp.com.pg> On 2 Nov 2004 at 15:20, mnptl at sonmedia.com wrote: > > I was hoping that there was something similar to: > > command.com /c net time \\ /set /y > > that could use for synchronizing the local machine's time to a "standard" > clock available on the Internet, such as NIST. I tried the command above > with: > > command.com /c net time \\129.6.15.28 /set /y > > ... (which is one of the NIST time server IP addresses) but with no > success. It CAN be used for synchronizing with the back-end server, but I > was hoping for something more thorough! > > Let me know if you know of any other way. > Generally I just use something like AboutTime from http://www.arachnoid.com/abouttime/index.html I normally run it as a single machine which has permanent internet access such as a mail server and use net time on all the workstations to keep them in synch. But if you really need to embed it in Access, download the code at http://www.freevbcode.com/ShowCode.asp?ID=1594 It is a simple one form VB NTP client application. You should just about be able to cut and paste the whole thing into an Access from. -- Stuart From cfoust at infostatsystems.com Tue Nov 2 15:48:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 13:48:53 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: It seems to me that the one time I did something like this, I had to create a popup form that looked like a toolbar and open that when the report opened so that I could print the report. I don't recall whether a floating toolbar was an option, but it you hide the window, then logically, you also hide the menus. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, November 02, 2004 1:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Nov 2 15:51:55 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 15:51:55 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6C@karta-exc-int.Karta.com> Lonnie, You can't preview the report with Access Window hidden. To preview the report, you must unhide the Access Window and then hide it again when the report preview is completed. Sequence of events to preview report... - click button to preview report - set form property visible to false - unhide Access Window - preview report - make sure you have a custom menu. - close report - hide Access Window - set form property visible to True HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ 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 Nov 2 15:54:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 3 Nov 2004 08:54:05 +1100 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <20041102211353.70465.qmail@web20424.mail.yahoo.com> Message-ID: <200411022154.iA2LsDXH006088@cooper.uws.edu.au> Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Nov 2 15:59:34 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Nov 2004 14:59:34 -0700 Subject: [AccessD] Locked form w/editable subform? Message-ID: <112490-220041122215934514@christopherhawkins.com> Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From stephen at bondsoftware.co.nz Tue Nov 2 15:40:46 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 03 Nov 2004 10:40:46 +1300 Subject: [AccessD] SQL Tables vs. Access Tables Message-ID: <70F3D727890C784291D8433E9C418F298FDA@server.bondsoftware.co.nz> Arthur, are these the sort of things covered in the Harkins/Reid book ...? Stephen Bond > > 3. Many of the things that we are comfortable in doing in Access are > quite the wrong approach with SQL Server, in terms of best practices. > This part cannot be communicated in a simple email message, but in > general it reduces to this: the old practice of binding forms > to tables > is all wrong. > From JHewson at karta.com Tue Nov 2 16:09:03 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Nov 2004 16:09:03 -0600 Subject: [AccessD] Locked form w/editable subform? Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6D@karta-exc-int.Karta.com> Could you set each control's Enabled and Locked property to No and Yes. That essentially, makes the form uneditable but allows the subform to function normally. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, November 02, 2004 4:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Nov 2 16:09:35 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Nov 2004 08:09:35 +1000 Subject: [AccessD] Locked form w/editable subform? In-Reply-To: <112490-220041122215934514@christopherhawkins.com> Message-ID: <4188923F.15285.E66FFC3@lexacorp.com.pg> On 2 Nov 2004 at 14:59, Christopher Hawkins wrote: > Suppose you have frmMain and frmSub. > > frmMain is (duh) the main form and frmSub is the SourceObject of > subform control sFrm on frmMain. > > How can I set frmMain.AllowEdits to False and still have frmSub > behave as though it's .AllowEdit property is set to True? Right now, > as soon as I change the setting for frmMain, it takes frmSub along > with it. > You could set all the fields on frmMain to Enabled and Locked or set the AllowEdits explicitly in code on_load. -- Stuart From cfoust at infostatsystems.com Tue Nov 2 16:22:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Nov 2004 14:22:11 -0800 Subject: [AccessD] Locked form w/editable subform? Message-ID: Don't set allowEdits to false on frmMain, only on frmSub. On frmMain, have a routine that loops through the data controls and locks them unless you already have them locked by default in design view. The subform control gets locked along with the rest by AllowEdits. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, November 02, 2004 2:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 2 16:20:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 02 Nov 2004 17:20:34 -0500 Subject: [AccessD] Locked form w/editable subform? In-Reply-To: <112490-220041122215934514@christopherhawkins.com> Message-ID: <001001c4c12a$2f9d4640$e8dafea9@ColbyM6805> It happens at load time of the subform. You can manipulate the subform properties after load, or you can leave the main form editable until after load then set that to allow edits false. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, November 02, 2004 5:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Locked form w/editable subform? Suppose you have frmMain and frmSub. frmMain is (duh) the main form and frmSub is the SourceObject of subform control sFrm on frmMain. How can I set frmMain.AllowEdits to False and still have frmSub behave as though it's .AllowEdit property is set to True? Right now, as soon as I change the setting for frmMain, it takes frmSub along with it. Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at piasd.org Tue Nov 2 16:46:30 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 2 Nov 2004 14:46:30 -0800 Subject: [AccessD] Insert Into query help Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF2785686@server.domain.local> Using Access 2000, what is wrong with this syntax? INSERT INTO Activity ( IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate ) VALUES ( 'Employee', SELECT EmployeeID FROM tbl1104Mess , 6, 28,341, #11/02/04# ) The desired result is to place 1 record into Activity for each 1 record in tbl1104Mess. With all the literal values and the EmployeeID from tbl1104Mess. I get an error when I execute this statement. Thanks for any feedback. Regards, Chris From ssharkins at bellsouth.net Tue Nov 2 17:01:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 2 Nov 2004 18:01:23 -0500 Subject: [AccessD] SQL Tables vs. Access Tables In-Reply-To: <70F3D727890C784291D8433E9C418F298FDA@server.bondsoftware.co.nz> Message-ID: <20041102230156.KLAP2398.imf18aec.mail.bellsouth.net@SUSANONE> Stephen, I can't remember if you'll find an actual comparison in the books, but this might help: http://techrepublic.com.com/5100-6313_11-5034390.html?tag=search Martin did a thorough job of discussing the SQL Server objects in the book, so I'm sure what you need is there, I'm just not sure it's in the form of comparison. Susan H. Arthur, are these the sort of things covered in the Harkins/Reid book ...? From chris at piasd.org Tue Nov 2 17:12:04 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 2 Nov 2004 15:12:04 -0800 Subject: [AccessD] Insert Into query help Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF280109F@server.domain.local> I figured it out. I went this direction. INSERT INTO Activity(IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate) SELECT "Employee" as IDType, EmployeeID as ID, "6" as ProjectID, "28" as ComponentID, "341" as SubComponentID, "11/02/04" as ProcessDate FROM tbl1104Mess Worked brilliantly! Thanks for reading -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 02, 2004 2:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Insert Into query help Using Access 2000, what is wrong with this syntax? INSERT INTO Activity ( IDType, ID, ProjectID, ComponentID, SubComponentID, ProcessDate ) VALUES ( 'Employee', SELECT EmployeeID FROM tbl1104Mess , 6, 28,341, #11/02/04# ) The desired result is to place 1 record into Activity for each 1 record in tbl1104Mess. With all the literal values and the EmployeeID from tbl1104Mess. I get an error when I execute this statement. Thanks for any feedback. Regards, Chris -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mnptl at sonmedia.com Tue Nov 2 20:11:11 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Tue, 2 Nov 2004 21:11:11 -0500 (EST) Subject: [AccessD] "ApplyFilter" hassles Message-ID: <36008.10.235.219.133.1099447871.webmail@10.235.219.133> Using Access 2002 ? but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I?m busy developing it. I copied the app across to the target machine ? which uses Access 2000 ? and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message if it weren?t for the fact that I?m not using the ApplyFilter action ? ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? From handyman at actcom.co.il Tue Nov 2 21:12:50 2004 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 03 Nov 2004 05:12:50 +0200 Subject: [AccessD] Caller ID and Access In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B54C5@stekelbes.ithelps.l ocal> Message-ID: <5.1.0.14.2.20041103050915.03b0b080@pop5.actcom.net.il> I use a dsl line, but have a separate modem for the phone line. I tried out the callaudit program from Mountain Systems, and it seems to have all the features I need. I just have to work on integrating it with my appliaction. I would have preferred to put this straight into my application, but why reinvent the wheel :) Thanks gm At 10:12 PM, 11/2/2004 +0100, you wrote: >If you have ISDN you gonna need a ISDN card with CAPI support. >There is some VB code out there to use CAPI in access. >I have such an Access DB that use a CAPI control for wich the VB code >was available. > >Dont know the website anymore, it was several years ago. > >This only works with ISDN and a CAPI supported card like Eicon > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >handyman at actcom.co.il >Sent: Tuesday, November 02, 2004 6:08 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Caller ID and Access > >Thanks! > >This program from Mountain Systems seems to do a lot of the stuff I >want. >Since it stores all information in an Access database, I can just >integrate it with my database with some work. > >Thanks again! > >gm > > At 11:00 AM, 11/1/2004 -0800, you wrote: > > From a few years back > >You will have to use TAPI, your modem need's to support caller ID Ughh, > > >you are in Italy so you may have to check the format of caller id North > > >America had half a dozen standards from the various Telco's in Mid 90's > > >It was a mess. > >It is essentially about 55 bytes of data being sent between the first > >and second ring of the phone It can be more data, there are a couple > >of formats some included the callers name and blocking info in addition > > >to the number. > >I can't remember if there is now an established ISO standard I did this > > >back in 99. > > > >What I would do is try the trial version of Mountain Sys on your > >telephone system and modem It is only $15 a client, but you could roll > >your own code via Tapi after getting a format from your Telco but maybe > > >they have standardized format by now in Italy. > > > > Companies that seem to handle callerid connections to Access. > > > > Mountain Systems http://www.mtnsys.com > > > > CallAudit Software has sample Access 97 & 95 database with > > trial software that connects thru DDE. > > > > There are a lot of others. > > -------------------------------------------------------------------- > > From Mountain System FAQ buried in there > > > >How to Test a MODEM for Caller ID Support Caveats. > > > >Necessary equipment > > > > * Caller ID Service From your local telephone company > > * A Voice MODEM or hardware device that supports Caller ID > > > > > > Just about every MODEM disables Caller ID as the default. > > > > For most MODEMs, the string AT#CID=1 or AT#CLS=8#CID=1 will enable > > Caller ID. > > If Caller ID is not working, you will only see the word RING for > > each incoming ring. > > > > The most common result, when Caller ID data works, is the following: > > > > RING > > > > DATE = xxxxx > > > > TIME = xxxx > > > > NMBR = xxxxxxxxx > > > > NAME = xxxxxxxx > > > > RING > > > > RING … > > > > There are other formats as well. The key point is that other data > > generally appears between the first and second rings. > > > > Some telephone companies, especially in Canada, ship Caller ID data >in > > different formats, Check the software handles this. > > > > TAPI support for Caller ID was added after Windows 95 was released. > > Microsoft has an updated version of UniModemV on their Web page that > > > includes Caller ID support. The .INF file for your MODEM also needs to > > > modified to take advantage of this support, and some modems do not > > yet have this capability. > > > > Windows NT 3.X does not include any support for TAPI. Although > >Windows > > NT 4.0 does. > >handyman at actcom.co.il wrote: > > > >>Hi, > >> > >>I'm interested in somehow retrieving a CallerID number from my modem, > >>and then displaying the caller's information(taken from my database) > >>on screen. Has anyone ever done anything like this, or can point me > >>in the right direction > >> > >>Thanks, > >> > >>Gershon Markowitz > >>mailto:Handyman at actcom.co.il > > > >-- > >Marty Connelly > >Victoria, B.C. > >Canada > > > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From accessd667 at yahoo.com Wed Nov 3 01:39:20 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 2 Nov 2004 23:39:20 -0800 (PST) Subject: [AccessD] CheckDate? In-Reply-To: <17619718283.20041102141952@cactus.dk> Message-ID: <20041103073920.69473.qmail@web61106.mail.yahoo.com> Doh! I tested the function with 29 februari 2004......however 2004 is a schrikkeljaar :-) what's the English word for it?? Thanx! Gustav Brock wrote: Hi Sander > However, I added some extra checks to rule out 'impossible dates' > like 29,30 or 31 februari, 31 november, etc. Well, that's the point - IsDate() checks that as well! Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From Chris.Foote at uk.thalesgroup.com Wed Nov 3 02:21:56 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 3 Nov 2004 08:21:56 -0000 Subject: [AccessD] CheckDate? Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C434@ntscxch1.int.rdel.co.uk> I think the English (UK version) is leap year! 366 days rather than 365 right? Regards Chris Foote > -----Original Message----- > From: S D [mailto:accessd667 at yahoo.com] > Sent: Wednesday, November 03, 2004 7:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] CheckDate? > > > Doh! I tested the function with 29 februari 2004......however > 2004 is a schrikkeljaar :-) what's the English word for it?? > Thanx! > > Gustav Brock wrote: > Hi Sander > > > However, I added some extra checks to rule out 'impossible dates' > > like 29,30 or 31 februari, 31 november, etc. > > Well, that's the point - IsDate() checks that as well! > Both IsDate("31-11-xxxx") and IsDate("11-31-xxxx") will fail. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Wed Nov 3 03:34:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 3 Nov 2004 10:34:27 +0100 Subject: [AccessD] Time Synchronization In-Reply-To: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> References: <35609.10.235.219.133.1099417163.webmail@10.235.219.133> Message-ID: <766737608.20041103103427@cactus.dk> Hi Mark You can use an ActiveX control for this: http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ "Synchronize your client machine or just the software itself by retrieving the highly accurate time from time servers [..] This is accurate to the millisecond range so a large use is for Timestamping of information independent of the local CPU clock." Or use the winsock ocx. Here's some VB code you probably can adapt: http://www.freevbcode.com/ShowCode.asp?ID=1594 /gustav > Date: 2004-11-02 18:39 > Does anyone know of any VBA code to be placed within an Access application > that can easily poll an Internet-based time server, and return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > Thanks, > Mark Naud? From Paul.Rogers at SummitMedia.co.uk Wed Nov 3 05:11:32 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 3 Nov 2004 11:11:32 -0000 Subject: [AccessD] SQL Tables vs. Access Tables Message-ID: Thanks, Arthur, that's helped me too. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 02 November 2004 18:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Tables vs. Access Tables Joe Hecht wrote: >I may be picking up an assignment that sounds like an Access front end into >SQL tables. I am waiting to hear from the project manager for the more >details you all will ask me for. > >Is there any major difference between access tables and SQL tables I should >be aware of? > >I think I do good table design, normalization and naming conventions. > >thanks > >Joe Hecht >jmhla at earthlink.net >28g > > > > I would suggest the following: 1. Design it in Access, where you're comfortable. Then use the upsizing wizard to move it to SS when you're ready. Make sure that every ... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.781 / Virus Database: 527 - Release Date: 21/10/2004 From Chris.Foote at uk.thalesgroup.com Wed Nov 3 05:15:56 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 3 Nov 2004 11:15:56 -0000 Subject: [AccessD] Time Synchronization Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C436@ntscxch1.int.rdel.co.uk> Fair enough Mark! Looks like Gustav has the answer though! Good luck, please let me/us know how you get on. Best regards! Chris Foote > -----Original Message----- > From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] > Sent: Tuesday, November 02, 2004 8:21 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Time Synchronization > > > Hi Chris - yes, TECHNICALLY that would be a lot easier! PROCEDURALLY, > that could take months! I'm currently assisting a > pharmaceutical company > with ensuring that they meet all FDA regulations, especially those > concerning electronic records. > > The concept of handling their time synchronization in a > centralized way is > somewhat new, and will have to go up the chain of command to > head office, > mulled over, a policy put in place, local IT procedures > created, and then > the technical controls instituted... a very long process. > > I was hoping that there was something similar to: > > command.com /c net time \\ /set /y > > that could use for synchronizing the local machine's time to > a "standard" > clock available on the Internet, such as NIST. I tried the > command above > with: > > command.com /c net time \\129.6.15.28 /set /y > > ... (which is one of the NIST time server IP addresses) but with no > success. It CAN be used for synchronizing with the back-end > server, but I > was hoping for something more thorough! > > Let me know if you know of any other way. > > Thanks, > > Mark > > -----Original Message----- > From: "Foote, Chris" > Subject: RE: [AccessD] Time Synchronization > > Hi Mark! > > Would it not be easier to synch the clock on the host machine > with a NTP > server and then get that via Date() Time() etc? > > Or does the time function need to be totally encapsulated in > the Access app? > > Regards! > Chris Foote From JHewson at karta.com Wed Nov 3 07:18:24 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 3 Nov 2004 07:18:24 -0600 Subject: [AccessD] "ApplyFilter" hassles Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068C6E@karta-exc-int.Karta.com> Not sure if this will help... When ever I modify an A2K file (except data entry) using AXP, it never seems to work correctly. When developing in A2K, in my experience, you must use A2K. My suggestion is to open the file in A2K, make a few minor changes, then save it to see if that corrects the problem. If not, import all objects into a new container. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of mnptl at sonmedia.com Sent: Tuesday, November 02, 2004 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Nov 3 08:36:44 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 06:36:44 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <200411022154.iA2LsDXH006088@cooper.uws.edu.au> Message-ID: <20041103143644.16433.qmail@web20424.mail.yahoo.com> Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From JColby at dispec.com Wed Nov 3 09:22:48 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 10:22:48 -0500 Subject: [AccessD] What is App.hInstance in Access Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94D@DISABILITYINS01> In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, November 03, 2004 4:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Time Synchronization Hi Mark You can use an ActiveX control for this: http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ "Synchronize your client machine or just the software itself by retrieving the highly accurate time from time servers [..] This is accurate to the millisecond range so a large use is for Timestamping of information independent of the local CPU clock." Or use the winsock ocx. Here's some VB code you probably can adapt: http://www.freevbcode.com/ShowCode.asp?ID=1594 /gustav > Date: 2004-11-02 18:39 > Does anyone know of any VBA code to be placed within an Access application > that can easily poll an Internet-based time server, and return that time > to a variable? Searching through the archives hasn't come up with > naything ... yet ... > Thanks, > Mark Naud? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Nov 3 09:21:57 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 3 Nov 2004 10:21:57 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AABD@goexchange2.pghcorning.com> Just a thought, I would think you could put code in the unload or close event of the report to prompt the user if they want to print the report. If they select yes, then the report prints to their default printer. If that is not feasible to have them only print to their default printer, you can programmatically simulate the printer setup that is available in the file-->Print option. To do this I might use the form and code from Microsoft's demo which is on the following link to give you some ideas or a even a fast head start.. I just happened to be looking for some ideas on "change printer from VBA" and came across this page on Microsoft's site which might give you some options on the close event of the report.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k2/ht ml/ODC_acc10_Printers.asp Keep us posted if it works out for you or if it even sounds like it could work, Rich -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 9:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From CMackin at quiznos.com Wed Nov 3 09:25:16 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Wed, 3 Nov 2004 08:25:16 -0700 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Wed Nov 3 10:29:55 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 08:29:55 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: Message-ID: <20041103162955.94164.qmail@web20428.mail.yahoo.com> Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From cfoust at infostatsystems.com Wed Nov 3 10:30:06 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 08:30:06 -0800 Subject: [AccessD] "ApplyFilter" hassles Message-ID: I think that depends on what you do with it. I normally work in 2002 and have never had a problem running the app in 2000 unless I used XP-specific objects, etc., in my code. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Wednesday, November 03, 2004 5:18 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] "ApplyFilter" hassles Not sure if this will help... When ever I modify an A2K file (except data entry) using AXP, it never seems to work correctly. When developing in A2K, in my experience, you must use A2K. My suggestion is to open the file in A2K, make a few minor changes, then save it to see if that corrects the problem. If not, import all objects into a new container. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of mnptl at sonmedia.com Sent: Tuesday, November 02, 2004 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 3 10:33:19 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 08:33:19 -0800 Subject: [AccessD] "ApplyFilter" hassles Message-ID: I don't understand why you're filtering the subforms that way instead of using the master and child links. That would eliminate the "filter" aspect entirely. Charlotte Foust -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Tuesday, November 02, 2004 6:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] "ApplyFilter" hassles Using Access 2002 - but saving my application in Access 2000 format - I have been busily creating a form with a bunch of sub forms. Each sub form is populated from a field in the main form (e.g. SELECT tbl_Names.* where tbl_Names.Ref_Dept = frm_Main.cmb_Dept). This all worked fine on the machine where I'm busy developing it. I copied the app across to the target machine - which uses Access 2000 - and tried to run it. Whenever it encounters one of these sub forms, I receive an error 4288 - "You can't use the ApplyFilter action on this window." This would be a useful message ... if it weren't for the fact that I'm not using the ApplyFilter action - ANYWHERE! Anyone seen this before? Anything I need to be aware of that can fix this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Wed Nov 3 10:41:55 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 11:41:55 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Wed Nov 3 11:05:38 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 3 Nov 2004 11:05:38 -0600 Subject: [AccessD] What is App.hInstance in Access Message-ID: <100F91B31300334B89EC531C9DCB0865318D88@tccexch01.tappeconstruction.net> No, that parameter refers to the parent instance handle, not the window handle. However, according to MSDN, this value is ignored in Windows NT/2000/XP, so you could just put 0& in its place. If you wish to cater to the elite Windows 95/98/ME crowd, you need to use the following code to get the Instance handle from the Application window: Private Const GWL_HINSTANCE = (-6) Private Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long GetWindowLong(hWndAccessApp, GWL_HINSTANCE) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Wednesday, November 03, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What is App.hInstance in Access In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Wed Nov 3 11:13:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 09:13:39 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Isn't that what OT is for? Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 03, 2004 8:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 3 11:15:09 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 03 Nov 2004 09:15:09 -0800 Subject: [AccessD] What is App.hInstance in Access References: <05C61C52D7CAD211A7830008C7DF6F10CBF94D@DISABILITYINS01> Message-ID: <4189121D.1050202@shaw.ca> If you want the Access Application window handle 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1 Here is some code I use to get Task List handles Maybe you can get something out of it. '_______________________________________________________ Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Private Declare Function GetWindow Lib "user32" _ (ByVal hwnd As Long, ByVal wCmd As Long) As Long Private Declare Function GetParent Lib "user32" _ (ByVal hwnd As Long) As Long Private Declare Function GetWindowTextLength Lib _ "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long Private Declare Function GetWindowText Lib "user32" _ Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal _ lpString As String, ByVal cch As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" _ (ByVal hwnd As Long) As Long 'Determining Which Tasks Are Running 'With the Microsoft Windows operating system, 'you can run any number of applications simultaneously. 'Occasionally, you may need to determine which tasks are currently being 'run. 'This can be accomplished by using several Windows application programming 'interface '(API) functions. 'To find the names of all currently executing tasks, 'you must first determine the handle of the window that is currently 'at the top of the z-order. This, of course, would be the window of your 'own Microsoft Visual Basic application. 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1. 'The second argument of the GetWindow function specifies the window 'you want to retrieve the handle for. 'This argument can have one of the following values: ' GW_CHILD Retrieve the handle for the child window. ' GW_HWNDFIRST Retrieve the handle for the window at the top of the z- 'order. ' GW_HWNDLAST Retrieve the handle for the window at the bottom of the z- 'order. ' GW_HWNDNEXT Retrieve the handle of the window below the specified window 'in the z-order. ' GW_HWNDPREV Retrieve the handle of the window above the specified window 'in the z-order. ' GW_OWNER Retrieve the handle of the window that owns the specified 'window, if any. 'After you have retrieved the application's window handle, 'you can use the Windows API GetParent function to retrieve this window's 'child window handle. Next, you call the Windows API GetWindowText and 'GetWindowTextLength functions to retrieve the text in the window's title 'bar 'and the length of this text, respectively. You can then use the text string 'in your own application. For example, you can save the title bar text 'to a List Box control. 'All of the above steps are repeated until you have processed all running 'tasks. 'You know that you have gone through each task when the current window is 'that'of your own application. Function LoadTaskList() As String Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim Parent As Long Dim parent_hwnd As Long Dim strMyTaskList As String strMyTaskList = " Task List " & vbCrLf ' This line below works from VB form 'CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' get Parent Window Handle parent_hwnd = FindWindow(vbNullString, "Microsoft Access") If parent_hwnd = 0 Then MsgBox "Access Not Found" Exit Function End If 'SetFocusAPI parent_hwnd CurrWnd = parent_hwnd While CurrWnd <> 0 Parent = GetParent(CurrWnd) Length = GetWindowTextLength(CurrWnd) TaskName = Space$(Length + 1) Length = GetWindowText(CurrWnd, TaskName, Length + 1) TaskName = Left$(TaskName, Len(TaskName) - 1) If Length > 0 Then 'If TaskName <> Me.Caption Then 'If TaskName <> "Microsoft Access" Then 'List1.AddItem TaskName strMyTaskList = strMyTaskList & TaskName & vbCrLf Debug.Print TaskName 'End If End If CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend LoadTaskList = strMyTaskList End Function Colby, John wrote: >In looking over the time sync stuff I found a class and module to replace >the winsock OCX control. It has a call: > > p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, >0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) > >which fails on App.hInstance. I'm assuming that this is a handle to the >application window. Is there an equivelent in VBA? I think I solved that >one by: > > p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, >0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) > >However I am now getting a compile error on: > > m_lngResolveMessage = RegisterWindowMessage(App.EXEName & >".ResolveMessage") > >There is no apparent equivelent property in the Application object. Does >anyone know what I would use here? > >John W. Colby >The DIS Database Guy > > >-----Original Message----- >From: Gustav Brock [mailto:gustav at cactus.dk] >Sent: Wednesday, November 03, 2004 4:34 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Time Synchronization > > >Hi Mark > >You can use an ActiveX control for this: > >http://www.universalthread.com/wconnect/wc.dll?FournierTransformation~ > >"Synchronize your client machine or just the software itself by >retrieving the highly accurate time from time servers [..] This is >accurate to the millisecond range so a large use is for Timestamping >of information independent of the local CPU clock." > >Or use the winsock ocx. Here's some VB code you probably can adapt: > >http://www.freevbcode.com/ShowCode.asp?ID=1594 > >/gustav > > > > >>Date: 2004-11-02 18:39 >> >> > > > >>Does anyone know of any VBA code to be placed within an Access application >>that can easily poll an Internet-based time server, and return that time >>to a variable? Searching through the archives hasn't come up with >>naything ... yet ... >> >> > > > >>Thanks, >> >> > > > >>Mark Naud? >> >> > > > -- Marty Connelly Victoria, B.C. Canada From JColby at dispec.com Wed Nov 3 11:26:52 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 3 Nov 2004 12:26:52 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF950@DISABILITYINS01> LOL. Maybe. I stay away from that place! ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 03, 2004 12:14 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Isn't that what OT is for? Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 03, 2004 8:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Hmm... do we need a Lonely Hearts list? ;-) John W. Colby The DIS Database Guy -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 11:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Christopher, I am a completely happily married heterosexual man but want to say I LOVE YOU. I am going to try that. I'll look in the archives for that code. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 3 11:26:22 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 09:26:22 -0800 Subject: [AccessD] What is App.hInstance in Access Message-ID: >>the elite Windows 95/98/ME crowd LOL ... And it isn't even Friday yet! Charlotte Foust -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Wednesday, November 03, 2004 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What is App.hInstance in Access No, that parameter refers to the parent instance handle, not the window handle. However, according to MSDN, this value is ignored in Windows NT/2000/XP, so you could just put 0& in its place. If you wish to cater to the elite Windows 95/98/ME crowd, you need to use the following code to get the Instance handle from the Application window: Private Const GWL_HINSTANCE = (-6) Private Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long GetWindowLong(hWndAccessApp, GWL_HINSTANCE) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Wednesday, November 03, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What is App.hInstance in Access In looking over the time sync stuff I found a class and module to replace the winsock OCX control. It has a call: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&) which fails on App.hInstance. I'm assuming that this is a handle to the application window. Is there an equivelent in VBA? I think I solved that one by: p_lngWindowHandle = CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, Application.hWndAccessApp, ByVal 0&) However I am now getting a compile error on: m_lngResolveMessage = RegisterWindowMessage(App.EXEName & ".ResolveMessage") There is no apparent equivelent property in the Application object. Does anyone know what I would use here? John W. Colby The DIS Database Guy ------------------------------------------------------------------------ -------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Jdemarco at hudsonhealthplan.org Wed Nov 3 13:02:09 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 Nov 2004 14:02:09 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869E7@TTNEXCHCL2.hshhp.com> List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY *********************************************************************************** "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 Wed Nov 3 14:25:10 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 3 Nov 2004 21:25:10 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54D8@stekelbes.ithelps.local> I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 cfoust at infostatsystems.com Wed Nov 3 14:27:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 12:27:17 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 prodevmg at yahoo.com Wed Nov 3 14:31:37 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 12:31:37 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) In-Reply-To: Message-ID: <20041103203137.38955.qmail@web20428.mail.yahoo.com> Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From CMackin at quiznos.com Wed Nov 3 14:43:19 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Wed, 3 Nov 2004 13:43:19 -0700 Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) Message-ID: Well now that I know that certain favors are off the table I'm not so sure... Here's one way to do it: 1) Create a global variable called something like gblnAllowAppClose and set it to false 2) Open a form as hidden when you open the app, and in the Unload event of the form you have something like" Cancel = Not gblnAllowAppClose 3) If you never set the value of gblnAllowAppClose then nobody can ever exit the app via normal commands so on your Exit button. before you quit the app have something like: gblnAllowAppClose = True Application.Quit 4) In the unload event of the form you are currently stopping the app from closing and you know that if that Event is called with gblnAllowAppClose = False then someone has tried to exit the app via the "X", so you can drop your code there for how you want to close the current report. I'm sure someone on the list has a more detailed account of how to do it if this isn't enough. Good Luck, Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 1:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 3 14:44:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 12:44:05 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 JRojas at tnco-inc.com Wed Nov 3 15:02:29 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 3 Nov 2004 16:02:29 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Hi All, If I have data similar to: JOE001 JOE002 JOE003 JOE005 JOE006 Is there a way, using just SQL, to return the next available number in the sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had already existed? Or do I have to use code to iterate through the records to check for "holes"? 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 DWUTKA at marlow.com Wed Nov 3 15:12:47 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 3 Nov 2004 15:12:47 -0600 Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) Message-ID: <123701F54509D9119A4F00D0B747349016D05A@main2.marlow.com> Did you search my archives? (http://www.wolfwares.com/AccessD) They are missing the last month or two (long story), but they go back a few years. Drew -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Wednesday, November 03, 2004 2:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Nov 3 15:40:06 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 03 Nov 2004 16:40:06 -0500 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF94F@DISABILITYINS01> Message-ID: <41895036.2050907@rogers.com> Colby, John wrote: >Hmm... do we need a Lonely Hearts list? ;-) > >John W. Colby >The DIS Database Guy > > > Well if so I am seriously into one-legged left-handed bisex biker chicks with programming skills. Anyone suitable please whip me and beat me and I'll write code for $1 an hour. Oh I forgot... must have an Iroquois cut. From artful at rogers.com Wed Nov 3 15:44:14 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 03 Nov 2004 16:44:14 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <4189512E.4000701@rogers.com> Joe Rojas wrote: >Hi All, >If I have data similar to: >JOE001 >JOE002 >JOE003 >JOE005 >JOE006 > >Is there a way, using just SQL, to return the next available number in the >sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had >already existed? >Or do I have to use code to iterate through the records to check for >"holes"? > >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. > > IMHO something is wrong with this design. You are packing two columns into one and expecting the database to act intelligently: unfair. If you really need this column, consider adding two more columns, one with each fragment and then concatenating the result in the column you have. The problem becomes much simpler with this approach. But back to the start. Why are you concatenating two column values into one? A. From prodevmg at yahoo.com Wed Nov 3 15:44:38 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 3 Nov 2004 13:44:38 -0800 (PST) Subject: [AccessD] Calling all Gurus - Hide Access Window (Chris) In-Reply-To: Message-ID: <20041103214438.93495.qmail@web20426.mail.yahoo.com> You get a star. * That did it. I have now have a professional looking application that is fully functional. "Mackin, Christopher" wrote: Well now that I know that certain favors are off the table I'm not so sure... Here's one way to do it: 1) Create a global variable called something like gblnAllowAppClose and set it to false 2) Open a form as hidden when you open the app, and in the Unload event of the form you have something like" Cancel = Not gblnAllowAppClose 3) If you never set the value of gblnAllowAppClose then nobody can ever exit the app via normal commands so on your Exit button. before you quit the app have something like: gblnAllowAppClose = True Application.Quit 4) In the unload event of the form you are currently stopping the app from closing and you know that if that Event is called with gblnAllowAppClose = False then someone has tried to exit the app via the "X", so you can drop your code there for how you want to close the current report. I'm sure someone on the list has a more detailed account of how to do it if this isn't enough. Good Luck, Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 1:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window (Chris) Hello Chris, I searched the archives with no success. Can you give a little help in finding the instructions? Thanks. "Mackin, Christopher" wrote: You can always have a hidden form that processes the click on the "X" to close the application as a command to close the report. The methodology to prevent the ap from closing has been discussed extensively in the archives, just add some code to that to close the currently visible report and you should be OK. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lonnie Johnson Sent: Wednesday, November 03, 2004 7:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From d.dick at uws.edu.au Wed Nov 3 16:13:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 4 Nov 2004 09:13:01 +1100 Subject: [AccessD] Calling all Gurus - Hide Access Window In-Reply-To: <20041103143644.16433.qmail@web20424.mail.yahoo.com> Message-ID: <200411032213.iA3MD9XH017636@cooper.uws.edu.au> Hi Lonnie I have a switchboard type form open all the time It is hidden or not hidden depending on where the user has gone When reports are open and the MDI is displayed I have it hidden In the On close of the Switchboard the User is prompted with a msgbox Are you sure you want to close and quit the <> application? (VBYESNO) That way if they click the big X not the little x in the reports area It (obviously) attempts to close the app, thus attempts to close the Switchboard and thus the MsgBox Confirming quitting comes up. After show or explaining it once they realise they have clicked the bigX By mistake and they answer no the to MsgBox and everything's is cool Simple There are heaps of ways of doing this. Have a look in the archives or contact me off list and "I'll show you mine" ;-))) See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, 4 November 2004 1:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Thanks DD, Charlotte and Jim. I may consider using the process of unhiding the Access MDI when viewing a report. The only thing I didn't like when I tested it is that they have the (X) to close the application. The user may mistake this X as the one to close the report. In the form that they use they have to close the app with a button. Anyway, thanks again everyone. You've all earned the rank of Guru in my books. Darren DICK wrote: Hi Lonnie I use this code all the time too. When you want to "SEE" (i.e. Preview) a report you have to make the Access window (MDI) visible again I do this in the onclick of the 'launching' command button for the report or in the load Events of the report. Then when the report is closed I have code in the Unload to make the MDI hidden again I like the look of the hidden MDI and it really suits my purposes, you just have to put up with The hide, unhide aerobics if you want to keep hiding the MDI for forms. If I am mistaken about the MDI and previewing reports I am sure someone from the list will let me know See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Wednesday, 3 November 2004 8:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Yes, I have created the menu as and a toolbar as Jim had also suggested and assigned their names in the property window for the form and cannot see either of them when I open it. Am I missing another step? Thanks Charlotte. Bobby, Right Click dosen't work in this case with the HideWindow code. Thanks to all so far. Charlotte Foust wrote: Have you created a shortcut menu for the report? Charlotte Foust -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Tuesday, November 02, 2004 12:45 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calling all Gurus - Hide Access Window Can't you right-click and choose Print? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, November 02, 2004 3:10 PM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 3 16:20:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 14:20:40 -0800 Subject: [AccessD] Calling all Gurus - Hide Access Window Message-ID: Arthur! I didn't know you CARED!! LOL Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, November 03, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calling all Gurus - Hide Access Window Colby, John wrote: >Hmm... do we need a Lonely Hearts list? ;-) > >John W. Colby >The DIS Database Guy > > > Well if so I am seriously into one-legged left-handed bisex biker chicks with programming skills. Anyone suitable please whip me and beat me and I'll write code for $1 an hour. Oh I forgot... must have an Iroquois cut. -- _______________________________________________ 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 Wed Nov 3 16:22:53 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 4 Nov 2004 09:22:53 +1100 Subject: [AccessD] A2K3 Bloating In-Reply-To: Message-ID: <200411032223.iA3MN2XH027861@cooper.uws.edu.au> Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 Erwin.Craps at ithelps.be Wed Nov 3 18:27:19 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Nov 2004 01:27:19 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54DB@stekelbes.ithelps.local> Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 cfoust at infostatsystems.com Wed Nov 3 19:32:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Nov 2004 17:32:35 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 KP at sdsonline.net Wed Nov 3 21:19:20 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:19:20 +1100 Subject: [AccessD] Cannot delete Missing references Message-ID: <000a01c4c21d$13ae0bb0$6401a8c0@user> Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath From jwcolby at colbyconsulting.com Wed Nov 3 21:36:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 03 Nov 2004 22:36:24 -0500 Subject: [AccessD] Cannot delete Missing references In-Reply-To: <000a01c4c21d$13ae0bb0$6401a8c0@user> Message-ID: <002901c4c21f$75c5f9a0$e8dafea9@ColbyM6805> When you say burned a copy do you mean to CD? Is the mdb file read only now? Check with windows explorer and set back to r/w if it is read only. When copying from CD to disk the file is copied Read Only. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, November 03, 2004 10:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Cannot delete Missing references Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Wed Nov 3 21:49:25 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:49:25 +1100 Subject: [AccessD] Cannot delete Missing references References: <002901c4c21f$75c5f9a0$e8dafea9@ColbyM6805> Message-ID: <000b01c4c221$476ef5a0$6401a8c0@user> Thanks John - no - I checked that.....I have also now tried a couple of other things - I have tried to import all objects into a clean new mdb - it will not import the forms because of this refs prob, - I have run Jetcomp and created a new version - but it also has the same problem. The references in problem are to Frontpage - I can't believe that I can't just remove them and create them again.... ----- Original Message ----- From: John W. Colby To: 'Access Developers discussion and problem solving' Sent: Thursday, November 04, 2004 2:36 PM Subject: RE: [AccessD] Cannot delete Missing references When you say burned a copy do you mean to CD? Is the mdb file read only now? Check with windows explorer and set back to r/w if it is read only. When copying from CD to disk the file is copied Read Only. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Wednesday, November 03, 2004 10:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Cannot delete Missing references Yesterday I was out on-site with a client and together we made some changes to the mdb. I burned a copy of the modified version to bring home to continue working on and now the references are causing me some problems. Client had Frontpage refs which are newer than mine - so naturally when I load I get 'Missing' for the 2 front page files. I tried to just untick those refs and then add my versions but I simply cannot untick those missing references and click OK - I get error message 'Cannot perform requested operation'. The other thing I tried was to replace the refs by clicking browse and override the missing refs with mine - same error. BTW - I thought maybe an open form or something may be blocking me from changing the refs - but I am just shift+opening the mdb - no open forms or anything else. What am I missing? TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Wed Nov 3 21:52:50 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Thu, 4 Nov 2004 14:52:50 +1100 Subject: [AccessD] OT: Online Access groups References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> Message-ID: <001a01c4c221$c14f3740$6401a8c0@user> Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Sent: Wednesday, November 03, 2004 7:10 AM Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.mattys at adelphia.net Wed Nov 3 22:17:19 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 3 Nov 2004 23:17:19 -0500 Subject: [AccessD] OT: Online Access groups References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> <001a01c4c221$c14f3740$6401a8c0@user> Message-ID: <03e601c4c225$2eed7930$6401a8c0@default> ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 10:52 PM Subject: [AccessD] OT: Online Access groups Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Now hold on there, Kath, let's see ... um, hm ... try this: Application.SaveAsText acForm, "FormName", "DesiredPath" I'm thinking that if there's a FrontPage control on this form that you can just delete it from the text file, delete the form, remove the bad ref, and then import that file right back in as a form. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com From Erwin.Craps at ithelps.be Thu Nov 4 00:53:45 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Nov 2004 07:53:45 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54DC@stekelbes.ithelps.local> You can set the default DB type for new database between 200O or 2002/2003 in the option menu. On my computer it is set tp 2002/2003, it is posible that I changed it to 2002/2003 but I don't see the point having A2K3 and creating by default new databases in 2000 format, seems pointless to me. I'll check on my other computers, if I did changed that option, than probably not on the those. You can work and modify 2000 dababase files without converting in Access 2003. Maybe the bloat is still present in A2K3 when using A2K database. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 2:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 andy at minstersystems.co.uk Thu Nov 4 01:25:59 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 07:25:59 -0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <000401c4c23f$88a4b3c0$b274d0d5@minster33c3r25> Joe The only way I can come up with is if you created a table of all possible numbers, left joined that to this table, had a WHERE statement that limited the selection to records where the key on the joined table (yours) was null (ie no match) and returned the TOP 1 of those. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas > Sent: 03 November 2004 21:02 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Checking for "holes" in a sequence using SQL > > > Hi All, > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > > Is there a way, using just SQL, to return the next available > number in the sequence, JOE004, and be flexible enough to > return JOE007 if JOE004 had already existed? Or do I have to > use code to iterate through the records to check for "holes"? > > 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 gustav at cactus.dk Thu Nov 4 03:52:11 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 10:52:11 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> Message-ID: <896943354.20041104105211@cactus.dk> Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav From cyx5 at cdc.gov Thu Nov 4 06:12:51 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 07:12:51 -0500 Subject: [AccessD] .MDW ByPass Surgery Message-ID: My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. From adtp at touchtelindia.net Thu Nov 4 06:21:23 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 4 Nov 2004 17:51:23 +0530 Subject: [AccessD] Checking for "holes" in a sequence using SQL References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> <896943354.20041104105211@cactus.dk> Message-ID: <006501c4c268$dc8c5c30$7d1865cb@winxp> Excellent - Gustav! Beautiful SQL. A.D.Tejpal -------------- ----- Original Message ----- From: Gustav Brock To: Access Developers discussion and problem solving Sent: Thursday, November 04, 2004 15:22 Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav From mgauk at btconnect.com Thu Nov 4 06:26:56 2004 From: mgauk at btconnect.com (MG) Date: Thu, 4 Nov 2004 12:26:56 -0000 Subject: [AccessD] .MDW ByPass Surgery In-Reply-To: Message-ID: <200411041228.iA4CS3L07803@databaseadvisors.com> Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 From mark.breen at gmail.com Thu Nov 4 07:18:47 2004 From: mark.breen at gmail.com (Mark Breen) Date: Thu, 4 Nov 2004 13:18:47 +0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <006501c4c268$dc8c5c30$7d1865cb@winxp> References: <0CC84C9461AE6445AD5A602001C41C4B059F7E@mercury.tnco-inc.com> <896943354.20041104105211@cactus.dk> <006501c4c268$dc8c5c30$7d1865cb@winxp> Message-ID: <26a96cce041104051829a2a584@mail.gmail.com> Hello Gustav, Really beautiful. Compliments to you. Of course when we read the SQL now, it is simple, but not so simple when we were the other side of the fence. I love to hand write my SQL when practical. Mark On Thu, 4 Nov 2004 17:51:23 +0530, A.D.Tejpal wrote: > Excellent - Gustav! Beautiful SQL. > > A.D.Tejpal > -------------- > > > > ----- Original Message ----- > From: Gustav Brock > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 15:22 > Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL > > Hi Joe > > > If I have data similar to: > > JOE001 > > JOE002 > > JOE003 > > JOE005 > > JOE006 > > > Is there a way, using just SQL, to return the next available number in the > > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > > already existed? > > Or do I have to use code to iterate through the records to check for > > "holes"? > > Except for the indication of some malfunctioning during the design > state as already pointed out by others, there is: > > > > SELECT TOP 1 > TextID, > Left(TextID, Len(TextID)-3) & > Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID > FROM > tblID > WHERE > (Nz( > (Select Top 1 > Val(Right(TextID,3)) > From > tblID As T > Where > T.TextID > tblID.TextID) > -Val(Right([TextID],3)), > 2)>1) > ORDER BY > tblID.TextID; > > > > All the "3"s count for the length of the numeric right part of the > textid. > Note the "magic 2" in Nz() which cares for the return of the last > textid if no "holes" exist. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From prodevmg at yahoo.com Thu Nov 4 07:20:16 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 4 Nov 2004 05:20:16 -0800 (PST) Subject: [AccessD] OT: Online Access groups In-Reply-To: <001a01c4c221$c14f3740$6401a8c0@user> Message-ID: <20041104132016.35417.qmail@web20424.mail.yahoo.com> I try not to cross post much. This and AccessDevelopers are two that I find most helpful. Because I was desperate and needed a solution fast, I solicited the help of every forum I could to tug at every available guru I could. Kath Pelletti wrote:Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Sent: Wednesday, November 03, 2004 7:10 AM Subject: [AccessD] Calling all Gurus - Hide Access Window Hello all, I am using the popular API code that hides the access window and just shows a form on the desktop. (Small snippet below) Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Dim dwReturn As Long Const SW_HIDE = 0 Const SW_SHOWNORMAL = 1 Const SW_SHOWMINIMIZED = 2.... It is working fine except withe reports. I am even able to preview reports. However, how do I print them? Has anyone worked this part out? I know there is an answer out there somewhere! Thanks in advance. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a From andy at minstersystems.co.uk Thu Nov 4 06:24:56 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 13:24:56 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <20041104132453.C747F25490F@smtp.nildram.co.uk> Gustav, I'm in awe!!! But I don't fully understand how it works. What does the: Nz((Select Top 1 Val(Right(TextID,3)) return, and how does checking it being >1 spot the gaps? -- 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] Checking for "holes" in a sequence using SQL Date: 04/11/04 12:23 > > Excellent - Gustav! Beautiful SQL. > > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Gustav Brock > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 15:22 > Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL > > > Hi Joe > > > If I have data similar to: > > JOE001 > > JOE002 > > JOE003 > > JOE005 > > JOE006 > > > Is there a way, using just SQL, to return the next available number in the > > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > > already existed? > > Or do I have to use code to iterate through the records to check for > > "holes"? > > Except for the indication of some malfunctioning during the design > state as already pointed out by others, there is: > > <SQL> > > SELECT TOP 1 > TextID, > Left(TextID, Len(TextID)-3) & > Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID > FROM > tblID > WHERE > (Nz( > (Select Top 1 > Val(Right(TextID,3)) > From > tblID As T > Where > T.TextID > tblID.TextID) > -Val(Right([TextID],3)), > 2)>1) > ORDER BY > tblID.TextID; > > </SQL> > > All the "3"s count for the length of the numeric right part of the > textid. > Note the "magic 2" in Nz() which cares for the return of the last > textid if no "holes" exist. > > /gustav > > -- > _______________________________________________ > 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 cyx5 at cdc.gov Thu Nov 4 07:41:47 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 08:41:47 -0500 Subject: [AccessD] .MDW ByPass Surgery - SUCCESSFUL Message-ID: What a sigh of relief. Thank you so much. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG Sent: Thursday, November 04, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .MDW ByPass Surgery Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Nov 4 08:42:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 15:42:37 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <20041104132453.C747F25490F@smtp.nildram.co.uk> References: <20041104132453.C747F25490F@smtp.nildram.co.uk> Message-ID: <8724369731.20041104154237@cactus.dk> Hi Andy, Mark and A.D > Gustav, I'm in awe!!! But I don't fully understand how it works. What does > the: > Nz((Select Top 1 Val(Right(TextID,3)) > return, and how does checking it being >1 spot the gaps? Thanks! It uses the numeric part of Joe's textid to find the next higher id and the difference between these. This difference is, of course, 1 where no holes exist. If a hole is present, the difference will be 2 or larger. However, if no holes are present, no difference is found and it is Null and the expression with (Select ..)-Val(..) will be Null as well. This is caught by Nz() here: Nz((Select ..)-Val(Right([TextID],3)),2) which returns 2 for the "missing" hole at the last textid. Finally textid is sorted and Top 1 is added to find the first hole and only this. /gustav From andy at minstersystems.co.uk Thu Nov 4 08:21:01 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Nov 2004 15:21:01 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <20041104152057.BC43E254F24@smtp.nildram.co.uk> I get it, but I wouldn't have dreamed that up in a million years. Hats off to you Gustav. -- 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] Checking for "holes" in a sequence using SQL Date: 04/11/04 14:49 > > Hi Andy, Mark and A.D > > > Gustav, I'm in awe!!! But I don't fully understand how it works. What does > > the: > > > Nz((Select Top 1 Val(Right(TextID,3)) > > > return, and how does checking it being >1 spot the gaps? > > Thanks! > > It uses the numeric part of Joe's textid to find the next higher id > and the difference between these. This difference is, of course, 1 > where no holes exist. If a hole is present, the difference will be 2 > or larger. > However, if no holes are present, no difference is found and it is > Null and the expression with (Select ..)-Val(..) will be Null as well. > This is caught by Nz() here: > > Nz((Select ..)-Val(Right([TextID],3)),2) > > which returns 2 for the "missing" hole at the last textid. > Finally textid is sorted and Top 1 is added to find the first hole > and only this. > > /gustav > > -- > _______________________________________________ > 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 william.thompson1 at att.net Thu Nov 4 09:48:58 2004 From: william.thompson1 at att.net (William Thompson) Date: Thu, 4 Nov 2004 07:48:58 -0800 Subject: [AccessD] Access FE Field Names with Spaces - in SQL Server BE In-Reply-To: <20041104152057.BC43E254F24@smtp.nildram.co.uk> Message-ID: <200411041549.iA4Fn5L11490@databaseadvisors.com> Has it been anyone's experience either in Code, Form, Class or Procedure where field names with spaces in a SQL Server backend caused a breakage, with no work-around? My primary concern is with unbound forms and passing openargs to a popup form. Assuming no view is used to translate or alter the field name? I assume that all my field references will have to be altered to "[" & fieldname & "]" - even the fields that already have bracketed table definitions, like [Field With Spaces] in SQL Server. Bill Thompson From cyx5 at cdc.gov Thu Nov 4 10:05:10 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 11:05:10 -0500 Subject: [AccessD] Access FE Field Names with Spaces - in SQL Server BE Message-ID: I have not had a problem, and the psycho that created this SQL backend used spaces, # signs, ? Marks, \ backslashes and asterisks in the field names. I have had to bracket all references to the field names and will get around to changing them. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Thompson Sent: Thursday, November 04, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access FE Field Names with Spaces - in SQL Server BE Has it been anyone's experience either in Code, Form, Class or Procedure where field names with spaces in a SQL Server backend caused a breakage, with no work-around? My primary concern is with unbound forms and passing openargs to a popup form. Assuming no view is used to translate or alter the field name? I assume that all my field references will have to be altered to "[" & fieldname & "]" - even the fields that already have bracketed table definitions, like [Field With Spaces] in SQL Server. Bill Thompson -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 4 10:14:14 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Nov 2004 08:14:14 -0800 Subject: [AccessD] A2K3 Bloating Message-ID: The uncompressible bloat occurs in a system table that doesn't exist in the 2000 format, which is why we use that format for our data mdbs. We use the 2002 format for the front ends. As long as some of our users want to be able to use A2k or VB6 to work with the file, 2000 is the preferred data format for us. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 10:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating You can set the default DB type for new database between 200O or 2002/2003 in the option menu. On my computer it is set tp 2002/2003, it is posible that I changed it to 2002/2003 but I don't see the point having A2K3 and creating by default new databases in 2000 format, seems pointless to me. I'll check on my other computers, if I did changed that option, than probably not on the those. You can work and modify 2000 dababase files without converting in Access 2003. Maybe the bloat is still present in A2K3 when using A2K database. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 2:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Are you sure? I understood that A2K3 used the 2000 format by default. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 4:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Charlotte As far as I know A2K3 uses the 2002/2003 format by default. Maybe I changed it once in the options don't kown for sure, but anyway I did not experianced some bloating in 2002/2003 format... But I must confess I did not do any heavy developing yet in A2K3, I only switched one major and big app recently from A2K to A2K3. Now I just started a new app in A2K3, but I only started that yet... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, November 03, 2004 9:27 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating As far as I know, the problem still exists in 2003, and the 2000 format is still the default in that version. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, November 03, 2004 11:02 AM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 4 10:10:48 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 11:10:48 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: What would you do if the PWD is null, none assigned in the .mdw? AND... Is it OK to store the .mdw reference on a shared drive on the network instead of on an individual PCs folder? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG Sent: Thursday, November 04, 2004 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] .MDW ByPass Surgery Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" /USER max/PWD max123456789 Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: 04 November 2004 12:13 To: accessd at databaseadvisors.com Subject: [AccessD] .MDW ByPass Surgery My database is hooked to a .mdw. During the development stage, I want to open up the database and bypass this nag screen that asks for the user name and password. I have been googling, but can't find too much. I would like the shortcut on my desktop to do it, I think. But at this point I will do just about anything to disconnect it while I am developing. Thanks, wise ones. -- _______________________________________________ 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.786 / Virus Database: 532 - Release Date: 29/10/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 -- _______________________________________________ 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 Nov 4 10:42:15 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Nov 2004 11:42:15 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2757@xlivmbx21.aig.com> With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER > max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to > open up the database and bypass this nag screen that asks for the user > name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. > Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Thu Nov 4 11:05:00 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 12:05:00 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER > max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to > open up the database and bypass this nag screen that asks for the user > name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. > Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 11:38:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Nov 2004 18:38:04 +0100 Subject: [AccessD] MDW ByPass Surgery, Post Op In-Reply-To: References: Message-ID: <034895887.20041104183804@cactus.dk> Hi Karen If the password is empty and you completely remove the /pwd parameter from the command line of the shortcut, the dialog will not pop up. /gustav > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > There is little point in having the MDW file on the user's machine. If you > needed to move them into a different user group you would have to visit the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain ordinary > MDB file with a different extension. As such it is subject to all the usual > corruption risks, so I should be sure to backup the file at least once every > day. > If you do get a corruption of the MDW file, usually it is enough to open it > with Access (from the File, Open menu) and run a Repair on it. > Lambert >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen >> Sent: Thursday, November 04, 2004 11:11 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] MDW ByPass Surgery, Post Op >> >> What would you do if the PWD is null, none assigned in the .mdw? AND... >> Is it OK to store the .mdw reference on a shared drive on the network >> instead of on an individual PCs folder? >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG >> Sent: Thursday, November 04, 2004 7:27 AM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] .MDW ByPass Surgery >> >> >> Try a shortcut on your desk, (watch for word wrap) viz: >> "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" >> "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" >> /USER >> max/PWD max123456789 >> >> Regards >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >> Karen >> Sent: 04 November 2004 12:13 >> To: accessd at databaseadvisors.com >> Subject: [AccessD] .MDW ByPass Surgery >> >> My database is hooked to a .mdw. During the development stage, I want >> to >> open up the database and bypass this nag screen that asks for the user >> name >> and password. I have been googling, but can't find too much. >> I would like the shortcut on my desktop to do it, I think. But at this >> point I will do just about anything to disconnect it while I am >> developing. >> Thanks, wise ones. >> -- From cfoust at infostatsystems.com Thu Nov 4 11:48:21 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Nov 2004 09:48:21 -0800 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: You join a workgroup, whether you realize it or not, when you open Access or when you use the workgroup administrator to join one. By default, the system.mdw on the local machine is the workgroup unless you join another one. Using a shortcut allows you to specify the workgroup on the server for that session without changing the default workgroup. That should solve your problem. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, November 04, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program > Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to open up the database and bypass this nag screen that asks for the > user name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Thu Nov 4 12:08:43 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 13:08:43 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Yeppers. I have met with management and we have decided that the custom .mdw is outdated technology for our purposes. YEAH!!! Now I just have to go point 25 users back to the system.mdw that came with their package and not worry about it. All the security we need is table level and I have cranked that down on SQL server. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 04, 2004 12:48 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op You join a workgroup, whether you realize it or not, when you open Access or when you use the workgroup administrator to join one. By default, the system.mdw on the local machine is the workgroup unless you join another one. Using a shortcut allows you to specify the workgroup on the server for that session without changing the default workgroup. That should solve your problem. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Thursday, November 04, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op That is what I was thinking - why put it on a user's machine? So that makes sense. The backend is now in SQL and the security for the tables is ruled by SQL. I can put something in the start up of the app to identify the lan user id, and if they are not in my group of users, then out they go. So... How does one get rid of the reference to the .mdw once one has been established? If I open up any Access database, this stoopid thing runs. On the web, it is telling me to re-install Access. Must be a better way. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:42 AM To: 'Access Developers discussion and problem solving'; Nicholson, Karen Subject: RE: [AccessD] MDW ByPass Surgery, Post Op With no password, if you pass the user name in the command line then the worst you'll have to do is hit enter when the password dialog appears. Not too arduous . There is little point in having the MDW file on the user's machine. If you needed to move them into a different user group you would have to visit the workstation to do that. So the MDW should always be centrally stored, available to all users. But note, the MDW is in fact just a plain ordinary MDB file with a different extension. As such it is subject to all the usual corruption risks, so I should be sure to backup the file at least once every day. If you do get a corruption of the MDW file, usually it is enough to open it with Access (from the File, Open menu) and run a Repair on it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 11:11 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MDW ByPass Surgery, Post Op > > What would you do if the PWD is null, none assigned in the .mdw? AND... > Is it OK to store the .mdw reference on a shared drive on the network > instead of on an individual PCs folder? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > Sent: Thursday, November 04, 2004 7:27 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] .MDW ByPass Surgery > > > Try a shortcut on your desk, (watch for word wrap) viz: "C:\Program > Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > /USER max/PWD max123456789 > > Regards > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > Sent: 04 November 2004 12:13 > To: accessd at databaseadvisors.com > Subject: [AccessD] .MDW ByPass Surgery > > My database is hooked to a .mdw. During the development stage, I want > to open up the database and bypass this nag screen that asks for the > user name > and password. I have been googling, but can't find too much. > I would like the shortcut on my desktop to do it, I think. But at this > point I will do just about anything to disconnect it while I am > developing. Thanks, wise ones. > -- > _______________________________________________ > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 12:08:54 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Nov 2004 13:08:54 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2759@xlivmbx21.aig.com> When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 CMackin at quiznos.com Thu Nov 4 12:49:00 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 4 Nov 2004 11:49:00 -0700 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Alternatively, if you have a large group of users pointing to a particular .mdw on the network you can simply archive the current .mdw and copy your system.mdw into the network folder and rename it to match the currently used one. That saves having to rejoin workgroups and leaves you with the option of reverting to the old security by just replacing the file. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:09 AM To: 'Access Developers discussion and problem solving'; 'Nicholson, Karen' Subject: RE: [AccessD] MDW ByPass Surgery, Post Op When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 4 12:54:11 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 04 Nov 2004 12:54:11 -0600 Subject: [AccessD] Re: Calling all Gurus - Hide Access Window In-Reply-To: <200411041800.iA4I0tL32297@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041104125319.04d3fea0@pop3.highstream.net> Lonnie I think CTRL-P will do it for you. Robert At 12:00 PM 11/4/2004 -0600, you wrote: > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > Sent: Wednesday, November 03, 2004 7:10 AM > Subject: [AccessD] Calling all Gurus - Hide Access Window > > > Hello all, > > I am using the popular API code that hides the access window and just > shows a form on the desktop. (Small snippet below) > > Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As > Long) As Long > Dim dwReturn As Long > Const SW_HIDE = 0 > Const SW_SHOWNORMAL = 1 > Const SW_SHOWMINIMIZED = 2.... > > It is working fine except withe reports. I am even able to preview > reports. However, how do I print them? Has anyone worked this part out? > > I know there is an answer out there somewhere! > > Thanks in advance. From JRojas at tnco-inc.com Thu Nov 4 13:27:03 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 4 Nov 2004 14:27:03 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F84@mercury.tnco-inc.com> Arthur, I was not expecting the database to act intelligently. To be honest I was not expecting there to even be a solution to this although Gustav figured it out! I have an Access database that I used to keep track of the computers at my company. The computer naming convention that I use is TNCO###. One of the fields in the table is used for storing the computer name. If I remove a computer from our network and physical remove it from the company, I would like to be able to reuse that computer name instead of just using the next sequential number. To me I do not see it as concatenating two column values into one but I could be wrong. What do you think Arthur? JR -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, November 03, 2004 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Joe Rojas wrote: >Hi All, >If I have data similar to: >JOE001 >JOE002 >JOE003 >JOE005 >JOE006 > >Is there a way, using just SQL, to return the next available number in the >sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had >already existed? >Or do I have to use code to iterate through the records to check for >"holes"? > >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. > > IMHO something is wrong with this design. You are packing two columns into one and expecting the database to act intelligently: unfair. If you really need this column, consider adding two more columns, one with each fragment and then concatenating the result in the column you have. The problem becomes much simpler with this approach. But back to the start. Why are you concatenating two column values into one? A. -- _______________________________________________ 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 JRojas at tnco-inc.com Thu Nov 4 13:33:17 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 4 Nov 2004 14:33:17 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F85@mercury.tnco-inc.com> Wow! Thanks Gustav! Great SQL! JR -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 04, 2004 4:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL Hi Joe > If I have data similar to: > JOE001 > JOE002 > JOE003 > JOE005 > JOE006 > Is there a way, using just SQL, to return the next available number in the > sequence, JOE004, and be flexible enough to return JOE007 if JOE004 had > already existed? > Or do I have to use code to iterate through the records to check for > "holes"? Except for the indication of some malfunctioning during the design state as already pointed out by others, there is: SELECT TOP 1 TextID, Left(TextID, Len(TextID)-3) & Right(String(3,"0") & Right(TextID,3)+1,3) AS NextID FROM tblID WHERE (Nz( (Select Top 1 Val(Right(TextID,3)) From tblID As T Where T.TextID > tblID.TextID) -Val(Right([TextID],3)), 2)>1) ORDER BY tblID.TextID; All the "3"s count for the length of the numeric right part of the textid. Note the "magic 2" in Nz() which cares for the return of the last textid if no "holes" exist. /gustav -- _______________________________________________ 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 markamatte at hotmail.com Thu Nov 4 13:37:50 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 Nov 2004 19:37:50 +0000 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: I also was impressed...and from looking at it...you could use the same concept to fill in missing dates in a given date range. Thanks for the direction. Mark A. Matte >From: "Andy Lacey" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Checking for "holes" in a sequence using SQL >Date: Thu, 4 Nov 2004 15:21:01 +0100 > >I get it, but I wouldn't have dreamed that up in a million years. Hats off >to you Gustav. > >-- >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] Checking for "holes" in a sequence using SQL >Date: 04/11/04 14:49 > > > > > Hi Andy, Mark and A.D > > > > > Gustav, I'm in awe!!! But I don't fully understand how it works. >What >does > > > the: > > > > > Nz((Select Top 1 Val(Right(TextID,3)) > > > > > return, and how does checking it being >1 spot the gaps? > > > > Thanks! > > > > It uses the numeric part of Joe's textid to find the next higher id > > and the difference between these. This difference is, of course, 1 > > where no holes exist. If a hole is present, the difference will be 2 > > or larger. > > However, if no holes are present, no difference is found and it is > > Null and the expression with (Select ..)-Val(..) will be Null as well. > > This is caught by Nz() here: > > > > Nz((Select ..)-Val(Right([TextID],3)),2) > > > > which returns 2 for the "missing" hole at the last textid. > > Finally textid is sorted and Top 1 is added to find the first hole > > and only this. > > > > /gustav > > > > -- > > _______________________________________________ > > 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 cyx5 at cdc.gov Thu Nov 4 14:15:56 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 4 Nov 2004 15:15:56 -0500 Subject: [AccessD] MDW ByPass Surgery, Post Op Message-ID: Not so lucky; the .mdw is on the workstations, buried. Life is getting easier, though. I have the front end updater working and it is like a birthday party for them! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mackin, Christopher Sent: Thursday, November 04, 2004 1:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MDW ByPass Surgery, Post Op Alternatively, if you have a large group of users pointing to a particular .mdw on the network you can simply archive the current .mdw and copy your system.mdw into the network folder and rename it to match the currently used one. That saves having to rejoin workgroups and leaves you with the option of reverting to the old security by just replacing the file. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, November 04, 2004 11:09 AM To: 'Access Developers discussion and problem solving'; 'Nicholson, Karen' Subject: RE: [AccessD] MDW ByPass Surgery, Post Op When you first started working with this new MDW file you must have joined the workgroup using Wrkgadm.exe (in WINNT\SYSTEM32). All you need to do is rejoin the default workgroup by running Wrkgadm.exe and choosing the default MDW file in C:\WINNT\system32\system.mdw. Then Access won't ask for a password each time you run it. Using the shortcut that specifies the workgroup file avoids this problem completely. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Thursday, November 04, 2004 12:05 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > That is what I was thinking - why put it on a user's machine? So that > makes sense. The backend is now in SQL and the security for the tables > is ruled by SQL. I can put something in the start up of the app to > identify the lan user id, and if they are not in my group of users, then > out they go. > > So... How does one get rid of the reference to the .mdw once one has > been established? If I open up any Access database, this stoopid thing > runs. On the web, it is telling me to re-install Access. Must be a > better way. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, > Lambert > Sent: Thursday, November 04, 2004 11:42 AM > To: 'Access Developers discussion and problem solving'; Nicholson, Karen > Subject: RE: [AccessD] MDW ByPass Surgery, Post Op > > > With no password, if you pass the user name in the command line then the > worst you'll have to do is hit enter when the password dialog appears. > Not > too arduous . > > There is little point in having the MDW file on the user's machine. If > you > needed to move them into a different user group you would have to visit > the > workstation to do that. So the MDW should always be centrally stored, > available to all users. But note, the MDW is in fact just a plain > ordinary > MDB file with a different extension. As such it is subject to all the > usual > corruption risks, so I should be sure to backup the file at least once > every > day. > > If you do get a corruption of the MDW file, usually it is enough to open > it > with Access (from the File, Open menu) and run a Repair on it. > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > Karen > > Sent: Thursday, November 04, 2004 11:11 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MDW ByPass Surgery, Post Op > > > > What would you do if the PWD is null, none assigned in the .mdw? > AND... > > Is it OK to store the .mdw reference on a shared drive on the network > > instead of on an individual PCs folder? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MG > > Sent: Thursday, November 04, 2004 7:27 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] .MDW ByPass Surgery > > > > > > Try a shortcut on your desk, (watch for word wrap) viz: > > "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" > > "C:\_MCM\MCMFrontEnd.mdb" /wrkgrp "\\Server\svr-c\MCM\MySystem.mdw" > > /USER > > max/PWD max123456789 > > > > Regards > > Max > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, > > Karen > > Sent: 04 November 2004 12:13 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] .MDW ByPass Surgery > > > > My database is hooked to a .mdw. During the development stage, I want > > to > > open up the database and bypass this nag screen that asks for the user > > name > > and password. I have been googling, but can't find too much. > > I would like the shortcut on my desktop to do it, I think. But at > this > > point I will do just about anything to disconnect it while I am > > developing. > > Thanks, wise ones. > > -- > > _______________________________________________ > > 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.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.786 / Virus Database: 532 - Release Date: 29/10/2004 > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 16:23:21 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:23:21 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: <001a01c4c2bc$e524a240$6401a8c0@user> Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath From john at winhaven.net Thu Nov 4 16:25:57 2004 From: john at winhaven.net (John Bartow) Date: Thu, 4 Nov 2004 16:25:57 -0600 Subject: [AccessD] Form creep bug In-Reply-To: Message-ID: Does anyone remember any details about the bug that makes access forms creep a little bit to to the side of the screen until the close button is hidden? Was that Access or some form resizer control/method or what? John B. From CMackin at quiznos.com Thu Nov 4 16:29:43 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 4 Nov 2004 15:29:43 -0700 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Nov 4 16:36:58 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:36:58 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <003301c4c2be$cbccade0$6401a8c0@user> Chris - I checked the references on site and found none missing... ----- Original Message ----- From: Mackin, Christopher To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:29 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 16:45:26 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 09:45:26 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <003301c4c2be$cbccade0$6401a8c0@user> Message-ID: <00ac01c4c2c0$ae799710$6401a8c0@user> I have found that there is a difference in the order of the DAO / ADO references.... The reference to DAO in the latest release is above the ADO reference. Could this throw the error with Date()? Kath ----- Original Message ----- From: Kath Pelletti To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:36 AM Subject: Re: [AccessD] Date() not working - MDAC issue or not? Chris - I checked the references on site and found none missing... ----- Original Message ----- From: Mackin, Christopher To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 9:29 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? I would rule out a missing reference issue first, but if that's not the case then it could be an MDAC issue, I've had that in the past, but a few years ago, I believe it was MDAC 2.5 or 2.6 that was problematic. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 3:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Thu Nov 4 16:51:15 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 4 Nov 2004 14:51:15 -0800 Subject: [AccessD] A2K, Export to Excel Message-ID: A friend has a query, and is exporting the results to an excel file, for some reason the numeric (dollar) values are converted to string in excel (the single ' quote problem) it's easy enough to convert excel to see it as a numeric but why? thanks, -- -Francisco Pc This! pc news with out the jargon From stuart at lexacorp.com.pg Thu Nov 4 17:04:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Nov 2004 09:04:58 +1000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F84@mercury.tnco-inc.com> Message-ID: <418B423A.16918.18E65D38@lexacorp.com.pg> On 4 Nov 2004 at 14:27, Joe Rojas wrote: > Arthur, > > I was not expecting the database to act intelligently. To be honest I was > not expecting there to even be a solution to this although Gustav figured it > out! > > I have an Access database that I used to keep track of the computers at my > company. The computer naming convention that I use is TNCO###. One of the > fields in the table is used for storing the computer name. If I remove a > computer from our network and physical remove it from the company, I would > like to be able to reuse that computer name instead of just using the next > sequential number. To me I do not see it as concatenating two column values > into one but I could be wrong. What do you think Arthur? > If you *always* use the same initial characters, you could just store the numeric value in the table and display them formatted as "TNCO"000 -- Stuart From dwaters at usinternet.com Thu Nov 4 18:13:37 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 4 Nov 2004 18:13:37 -0600 Subject: [AccessD] Date() not working - MDAC issue or not? In-Reply-To: <8246256.1099611287819.JavaMail.root@sniper11.usinternet.com> Message-ID: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Nov 4 18:14:47 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:14:47 +1100 Subject: [AccessD] MDAC - more Message-ID: <017101c4c2cc$75fbf520$6401a8c0@user> Gurus - further to my client who has format() and date() no longer working - he is on Windows 2KPro, with Access 2000. I got him to run the MDAC component checker from Microsoft and it came up with MDAC version 2.5 sp 2.0. My next step would be to ask him to update his MDAC to the 2.8 version - before I do that - are there any possible disadvantages?? Thanks Kath From KP at sdsonline.net Thu Nov 4 18:23:30 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:23:30 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Message-ID: <017d01c4c2cd$ad8b5390$6401a8c0@user> That seems wise Dan - I haven't had this issue since Win98 users experienced same problem. And I am absolutely stumped how a PC which has had no changes to the OS or applications can suddenly get errors when I install a new mdb. In other words, last week their previous version of the same mdb gave them no errors with these same functions. Suddenly they start appearing and cause a critical process to fall over. I think that I will pull out all references to Date() and use of Format() functions - but that's tricky to do today. Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Thu Nov 4 18:24:57 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 11:24:57 +1100 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com><001a01c4c221$c14f3740$6401a8c0@user> <03e601c4c225$2eed7930$6401a8c0@default> Message-ID: <018701c4c2cd$e168c300$6401a8c0@user> Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. Kath ----- Original Message ----- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Thursday, November 04, 2004 3:17 PM Subject: Re: [AccessD] OT: Online Access groups ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Wednesday, November 03, 2004 10:52 PM Subject: [AccessD] OT: Online Access groups Lonnie - just a quick OT - I notice that your post also went to other Access groups - do you find them as useful as AccessD? Kath ----- Original Message ----- From: Lonnie Johnson To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; AccessD solving' Now hold on there, Kath, let's see ... um, hm ... try this: Application.SaveAsText acForm, "FormName", "DesiredPath" I'm thinking that if there's a FrontPage control on this form that you can just delete it from the text file, delete the form, remove the bad ref, and then import that file right back in as a form. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Thu Nov 4 20:06:15 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Fri, 5 Nov 2004 03:06:15 +0100 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F85@mercury.tnco-inc.com> Message-ID: <003401c4c2dc$17f03b70$0500a8c0@masterserv> We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan From d.dick at uws.edu.au Thu Nov 4 19:55:38 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 12:55:38 +1100 Subject: [AccessD] A2K: Speed up access over a network Message-ID: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Hello all I realise the q is very broad and has a million possible suggestions That's what I'm after I have a client who I am developing an app for. So far they are very pleased. But just the other day....They now want to be able to use the app after hours at home on their laptops. (And they are prepared to pay for this major re-direction) So this means connecting (in some cases) to the back end using dial up Am I in the wrong business here? Is this time to migrate the App to be browser based? (Which I know nothing about by the way) If you guys have successfully got your Access Apps to work at any decent sort of speed over dial up can you let me know how?? Many thanks Darren From stuart at lexacorp.com.pg Thu Nov 4 20:36:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Nov 2004 12:36:31 +1000 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Message-ID: <418B73CF.28101.19A80AB3@lexacorp.com.pg> On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know nothing > about by the way) > > If you guys have successfully got your Access Apps to work at any decent > sort of speed > over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart From martyconnelly at shaw.ca Thu Nov 4 20:54:42 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Nov 2004 18:54:42 -0800 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com> <001a01c4c221$c14f3740$6401a8c0@user> <03e601c4c225$2eed7930$6401a8c0@default> <018701c4c2cd$e168c300$6401a8c0@user> Message-ID: <418AEB72.8020702@shaw.ca> Try some variation of this code to remove reference It tests for broken reference lists by name and path to dll etc. If broken removes reference or use commented out code to delete by name Sub RemoveBrokenReferences() Dim refCurr As Reference Dim intLoop As Integer For intLoop = References.Count To 1 Step -1 Set refCurr = References(intLoop) Debug.Print References.Item(intLoop).Name & " - " & References.Item(intLoop).FullPath If refCurr.IsBroken = True Then References.Remove refCurr End If 'example forcibly remove DAO reference by name if cannot err 3109 'DAO - C:\Program Files\Common Files\Microsoft Shared\DAO\dao350.dll ' If References.Item(intLoop).Name = "DAO" Then ' References.Remove refCurr ' End If Next intLoop End Sub Kath Pelletti wrote: >Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. > >Kath > ----- Original Message ----- > From: Michael R Mattys > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 3:17 PM > Subject: Re: [AccessD] OT: Online Access groups > > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 10:52 PM > Subject: [AccessD] OT: Online Access groups > > > Lonnie - just a quick OT - I notice that your post also went to other Access > groups - do you find them as useful as AccessD? > > Kath > ----- Original Message ----- > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > > > Now hold on there, Kath, let's see ... um, hm ... try this: > > Application.SaveAsText acForm, "FormName", "DesiredPath" > > I'm thinking that if there's a FrontPage control on this form that > you can just delete it from the text file, delete the form, remove the > bad ref, and then import that file right back in as a form. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint > http://www.mattysconsulting.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 KP at sdsonline.net Thu Nov 4 21:24:23 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 14:24:23 +1100 Subject: [AccessD] Can't delete or change missing references References: <20041102201001.60145.qmail@web20424.mail.yahoo.com><001a01c4c221$c14f3740$6401a8c0@user><03e601c4c225$2eed7930$6401a8c0@default><018701c4c2cd$e168c300$6401a8c0@user> <418AEB72.8020702@shaw.ca> Message-ID: <000f01c4c2e6$f31f5500$6401a8c0@user> Thanks Marty - I will try to use this......for the moment I can't even *type* or copy/paste into the vbe window - when I try to do so, I get error 'Error in loading dll'. aaarrrgh.... I've tried a reset but it makes no difference. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Friday, November 05, 2004 1:54 PM Subject: Re: [AccessD] Can't delete or change missing references Try some variation of this code to remove reference It tests for broken reference lists by name and path to dll etc. If broken removes reference or use commented out code to delete by name Sub RemoveBrokenReferences() Dim refCurr As Reference Dim intLoop As Integer For intLoop = References.Count To 1 Step -1 Set refCurr = References(intLoop) Debug.Print References.Item(intLoop).Name & " - " & References.Item(intLoop).FullPath If refCurr.IsBroken = True Then References.Remove refCurr End If 'example forcibly remove DAO reference by name if cannot err 3109 'DAO - C:\Program Files\Common Files\Microsoft Shared\DAO\dao350.dll ' If References.Item(intLoop).Name = "DAO" Then ' References.Remove refCurr ' End If Next intLoop End Sub Kath Pelletti wrote: >Michael - thanks for this by the way - no luck there either. Even when I delete the form and all code referring to Frontpage I am still unable to remove or change those missing references. > >Kath > ----- Original Message ----- > From: Michael R Mattys > To: Access Developers discussion and problem solving > Sent: Thursday, November 04, 2004 3:17 PM > Subject: Re: [AccessD] OT: Online Access groups > > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, November 03, 2004 10:52 PM > Subject: [AccessD] OT: Online Access groups > > > Lonnie - just a quick OT - I notice that your post also went to other Access > groups - do you find them as useful as AccessD? > > Kath > ----- Original Message ----- > From: Lonnie Johnson > To: 'MS-ACCESS-L at lists.missouri.edu' ; AccessDevelopers ; ms_access ; > AccessD solving' > > > Now hold on there, Kath, let's see ... um, hm ... try this: > > Application.SaveAsText acForm, "FormName", "DesiredPath" > > I'm thinking that if there's a FrontPage control on this form that > you can just delete it from the text file, delete the form, remove the > bad ref, and then import that file right back in as a form. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint > http://www.mattysconsulting.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 KP at sdsonline.net Thu Nov 4 21:26:46 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 5 Nov 2004 14:26:46 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: <000601c4c2cc$4c4ae470$de1811d8@danwaters> Message-ID: <002101c4c2e7$47558f40$6401a8c0@user> For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 4 21:30:06 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 14:30:06 +1100 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: <200411050330.iA53UHXH009824@cooper.uws.edu.au> Outstanding This allows me to continue in Access and VB Where do I set all this stuff up (Actually How is a better question:-)) Calling all Terminal Server gurus Many thanks Stuart Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 5 November 2004 1:37 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay > for this major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know > nothing about by the way) > > If you guys have successfully got your Access Apps to work at any > decent sort of speed over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 4 22:09:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 04 Nov 2004 23:09:32 -0500 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <003401c4c2dc$17f03b70$0500a8c0@masterserv> Message-ID: <001a01c4c2ed$40e1bcf0$e8dafea9@ColbyM6805> I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ 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 Nov 4 22:30:51 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 15:30:51 +1100 Subject: [AccessD] A2K:Make Some pages in a Tab Control Enabled and some not Message-ID: <200411050431.iA54V1XH004318@cooper.uws.edu.au> Hello all Under certain circumstances I want the user to go to a form "frmPreferences" that has a Tab Control on it called "tabMain" How can I (from the error trapping of another form) spark up the form that has the tabControl on it (That bit I can do) and then make certain tabs enabled or visible on that tab control? Many thanks in advance Darren From d.dick at uws.edu.au Thu Nov 4 22:51:41 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Nov 2004 15:51:41 +1100 Subject: [AccessD] A2K:Make Some pages in a Tab Control Enabled and some not(Solved) Message-ID: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Never mind I figured out one way to do it If Err.Number = 76 Then MsgBox "message about invalid path get 'em to reset paths then fire up the preferences form", vbCritical, "Unable to copy Offline Data File" DoCmd.OpenForm "frmPreferences" Forms!frmPreferences.TabBlank.SetFocus With Forms!frmPreferences For Each ctl In Forms!frmPreferences.Controls If ctl.Tag = 1 Then ctl.Enabled = False End If Next End With Forms!frmPreferences.pgOffline.SetFocus Else MsgBox Err.Number & " " & Err.Description, vbCritical, "Error in fExit module" End If From pcs at azizaz.com Fri Nov 5 01:21:48 2004 From: pcs at azizaz.com (Borge Steen Hansen) Date: Fri, 5 Nov 2004 17:21:48 +1000 Subject: [AccessD] A2K:BackEnd Upgrader References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <026101c4c308$1fdeb420$fa10a8c0@Albatross> I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A few questions: Is 16 June 2002 the latest revision? Has any work been done on the BEup to accommodate more than one backend? Who best to contact with any specific questions or suggestions? Regards Borge Hansen --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From pedro at plex.nl Fri Nov 5 10:26:22 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 05 Nov 2004 10:26:22 (MET) Subject: [AccessD] how to do this? Message-ID: <200411050926.iA59QM8s014181@mailhostC.plex.net> Hello Group, What is the best way to do the following routine? I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. How can this been done. Thanks Pedro Janssen From gustav at cactus.dk Fri Nov 5 04:03:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 5 Nov 2004 11:03:23 +0100 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050330.iA53UHXH009824@cooper.uws.edu.au> References: <200411050330.iA53UHXH009824@cooper.uws.edu.au> Message-ID: <968427978.20041105110323@cactus.dk> Hi Darren Unless you would love to handle this and don't have better things to do, contract with a specialist. There are a lot of small dos and don'ts regarding rights, login, printers (remote print) which are not that simple. However, when up and running it's a nice solution. Do check the licensing scheme, though, as this is a mix of server license, user licenses and terminal service user licenses. One thing to insist on is to have a separate server for this. Don't mix it with file/print etc. not to mention an Exchange animal. /gustav > Outstanding > This allows me to continue in Access and VB > Where do I set all this stuff up (Actually How is a better question:-)) > Calling all Terminal Server gurus > Many thanks Stuart > Darren From carbonnb at sympatico.ca Fri Nov 5 04:34:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 05 Nov 2004 05:34:19 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: <026101c4c308$1fdeb420$fa10a8c0@Albatross> Message-ID: <418B10DB.28934.1BFDB1@localhost> On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > few questions: Is 16 June 2002 the latest revision? Has any work been Which version is that? Check the About form. > done on the BEup to accommodate more than one backend? Who best to None that I am aware of > contact with any specific questions or suggestions? You can ask here, since all the developers hang out here (Andy, Reuben and myself), but it may get missed or you can e-mail beu- support at databaseadvisors.com and get at the developers directly. -- Bryan Carbonnell - carbonnb at sympatico.ca We're all here because we're not all there. From pcs at azizaz.com Fri Nov 5 05:30:59 2004 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 5 Nov 2004 21:30:59 +1000 Subject: [AccessD] A2K:BackEnd Upgrader References: <418B10DB.28934.1BFDB1@localhost> Message-ID: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> The About Form says : Version 1.58 Latest One?? Regards Borge Hansen > On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > > > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > > few questions: Is 16 June 2002 the latest revision? > > Which version is that? Check the About form. > > > Has any work beendone on the BEup to accommodate more than one backend? > > None that I am aware of > > > Who best to contact with any specific questions or suggestions? > > You can ask here, since all the developers hang out here (Andy, > Reuben and myself), but it may get missed or you can e-mail beu- > support at databaseadvisors.com and get > at the developers directly. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > We're all here because we're not all there. --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From Helmut.E.Kotsch at t-online.de Fri Nov 5 06:29:50 2004 From: Helmut.E.Kotsch at t-online.de (Helmut Kotsch) Date: Fri, 5 Nov 2004 13:29:50 +0100 Subject: AW: [AccessD] A2K: Speed up access over a network In-Reply-To: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: Hi, would using Terminal Server bring a significant speed increase compared to using PcAnywhere or VNC? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Stuart McLachlan Gesendet: Freitag, 5. November 2004 03:37 An: Access Developers discussion and problemsolving Betreff: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know nothing > about by the way) > > If you guys have successfully got your Access Apps to work at any decent > sort of speed > over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ 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 Nov 5 07:12:09 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Nov 2004 14:12:09 +0100 Subject: [AccessD] A2K: Speed up access over a network Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54EC@stekelbes.ithelps.local> ABSOLUTELY No doubt about that... And VNC or PCA is not an option when using multiple users and for afety reasons (unless a seperate pc is used) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Friday, November 05, 2004 1:30 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] A2K: Speed up access over a network Hi, would using Terminal Server bring a significant speed increase compared to using PcAnywhere or VNC? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Stuart McLachlan Gesendet: Freitag, 5. November 2004 03:37 An: Access Developers discussion and problemsolving Betreff: Re: [AccessD] A2K: Speed up access over a network On 5 Nov 2004 at 12:55, Darren DICK wrote: > Hello all > I realise the q is very broad and has a million possible suggestions > That's what I'm after > > I have a client who I am developing an app for. So far they are very > pleased. > But just the other day....They now want to be able to use the app > after hours at home on their laptops. (And they are prepared to pay > for this > major re-direction) > > So this means connecting (in some cases) to the back end using dial up > > > Am I in the wrong business here? > > Is this time to migrate the App to be browser based? (Which I know > nothing about by the way) > > If you guys have successfully got your Access Apps to work at any > decent sort of speed over dial up can you let me know how?? > One option is to set up Terminal Server in the workplace and have them connect using a Terminal Services client. See http://www.microsoft.com/windows2000/demos/mod09.htm for quite a good demo. -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 5 07:34:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 5 Nov 2004 14:34:45 +0100 Subject: AW: [AccessD] A2K: Speed up access over a network In-Reply-To: References: Message-ID: <4621109323.20041105143445@cactus.dk> Hi Helmut > would using Terminal Server bring a significant speed increase compared to > using PcAnywhere or VNC? The speed of the app itself will be about the same - this is determined by the hardware at the host end. Response time, however, is much slower with VNC. I don't know about PcAnywhere, but their competitor NetOp Remote Control is very fast and offers remote printing as does the Terminal Server. /gustav From shait at mindspring.com Fri Nov 5 07:36:15 2004 From: shait at mindspring.com (Stephen Hait) Date: Fri, 5 Nov 2004 08:36:15 -0500 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050330.iA53UHXH009824@cooper.uws.edu.au> References: <418B73CF.28101.19A80AB3@lexacorp.com.pg> Message-ID: <418B3B7F.22400.E7A815B@localhost> > Where do I set all this stuff up (Actually How is a better > question:-)) > > Calling all Terminal Server gurus Another possibility, if users access the app via a locally installed FE "at work", might be to let them access the app through their _own_ desktops via VNC, gotomypc, or similar. Just a thought, Stephen From JRojas at tnco-inc.com Fri Nov 5 07:42:04 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 5 Nov 2004 08:42:04 -0500 Subject: [AccessD] Checking for "holes" in a sequence using SQL Message-ID: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Understood. Is it bad for to store the actual data, when using text, if they all share the same prefix? -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Thursday, November 04, 2004 6:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Checking for "holes" in a sequence using SQL On 4 Nov 2004 at 14:27, Joe Rojas wrote: > Arthur, > > I was not expecting the database to act intelligently. To be honest I was > not expecting there to even be a solution to this although Gustav figured it > out! > > I have an Access database that I used to keep track of the computers at my > company. The computer naming convention that I use is TNCO###. One of the > fields in the table is used for storing the computer name. If I remove a > computer from our network and physical remove it from the company, I would > like to be able to reuse that computer name instead of just using the next > sequential number. To me I do not see it as concatenating two column values > into one but I could be wrong. What do you think Arthur? > If you *always* use the same initial characters, you could just store the numeric value in the table and display them formatted as "TNCO"000 -- Stuart -- _______________________________________________ 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 Jdemarco at hudsonhealthplan.org Fri Nov 5 08:01:28 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 5 Nov 2004 09:01:28 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869F4@TTNEXCHCL2.hshhp.com> Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 *********************************************************************************** "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 Fri Nov 5 08:23:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Nov 2004 15:23:37 +0100 Subject: [AccessD] A2K3 Bloating Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54ED@stekelbes.ithelps.local> Please note that is is normal that a file is smaller after compacting. Don't forget after compacting your code needs to compile and store, but also queuries are compiled the first time they run. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 05, 2004 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 ************************************************************************ *********** "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 reuben at gfconsultants.com Fri Nov 5 08:31:05 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 5 Nov 2004 09:31:05 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> Message-ID: Borge, I'm not sure about the latest version. I know I am using 1.58 I beleive there is a new version. Unfortunately it has some untested stuff in it and therefore unreleased. Hopefully Andy or Bryan will see this and know more. I'll try to contact them as well. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Borge Hansen > Sent: Friday, November 05, 2004 6:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K:BackEnd Upgrader > > > The About Form says : Version 1.58 > > Latest One?? > > Regards > Borge Hansen > > > > On 5 Nov 2004 at 17:21, Borge Steen Hansen wrote: > > > > > I've downloaded the BEUp.mdb from http://www.databaseadvisors.com A > > > few questions: Is 16 June 2002 the latest revision? > > > > Which version is that? Check the About form. > > > > > Has any work beendone on the BEup to accommodate more than > one backend? > > > > None that I am aware of > > > > > Who best to contact with any specific questions or suggestions? > > > > You can ask here, since all the developers hang out here (Andy, > > Reuben and myself), but it may get missed or you can e-mail beu- > > support at databaseadvisors.com and get > > at the developers directly. > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > We're all here because we're not all there. > > > > --- > Outgoing mail is certified Virus Free by AVG Anti Virus System. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hudsonhealthplan.org Fri Nov 5 08:56:43 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 5 Nov 2004 09:56:43 -0500 Subject: [AccessD] A2K3 Bloating Message-ID: <08F823FD83787D4BA0B99CA580AD3C744869F8@TTNEXCHCL2.hshhp.com> Understood Erwin. But I've been hearing that the new file format will either not compact down at all or very little unlike previous versions. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Friday, November 05, 2004 9:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Please note that is is normal that a file is smaller after compacting. Don't forget after compacting your code needs to compile and store, but also queuries are compiled the first time they run. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 05, 2004 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 ************************************************************************ *********** "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 mastercafe at ctv.es Fri Nov 5 09:55:35 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Fri, 5 Nov 2004 16:55:35 +0100 Subject: [AccessD] A2k on W2k vs A2k on WinXP In-Reply-To: <001a01c4c2ed$40e1bcf0$e8dafea9@ColbyM6805> Message-ID: <009201c4c34f$f611a240$0500a8c0@masterserv> And how to solve?? It's really terrible close and open the same application to check and make changes on the code Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: viernes, 05 de noviembre de 2004 05:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 5 10:14:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Nov 2004 08:14:12 -0800 Subject: [AccessD] Date() not working - MDAC issue or not? Message-ID: Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Fri Nov 5 10:16:21 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 5 Nov 2004 11:16:21 -0500 Subject: [AccessD] A2k on W2k vs A2k on WinXP Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF953@DISABILITYINS01> In the cases I had, it had to do with the users not having WINDOWS rights to the directory where the stuff was stored on the server. IIRC the answer was to set up user accounts using the same user names / passwords on the server so that they had the rights to access the dir. I am not a notwork guy so there may be other ways to deal with this. John W. Colby The DIS Database Guy -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Friday, November 05, 2004 10:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP And how to solve?? It's really terrible close and open the same application to check and make changes on the code Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: viernes, 05 de noviembre de 2004 05:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2k on W2k vs A2k on WinXP I have seen this and it was a security issue, user rights to the directory. Apparently Windows XP adds some stuff in this regard that Win2K didn't care about. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: Thursday, November 04, 2004 9:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2k on W2k vs A2k on WinXP We install on one computer this week WinXP with Office XP dev. Ed On some application we discover that if we open and run we can't modify anything this only occur on WinXP same process on Win2k Access permit to us modify and save without problem. We try to make some changes before run the application and this is ok, and run Swichtboard only and run OK, but if we execute a simple query opening and writing over this application (any table) then we can't do changes. Why? Why Win2k permit to do this and WinXP not?? Thanks for any ideas Juan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 5 10:48:27 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 05 Nov 2004 08:48:27 -0800 Subject: [AccessD] how to do this? References: <200411050926.iA59QM8s014181@mailhostC.plex.net> Message-ID: <418BAEDB.7090507@shaw.ca> Well you can either store the Quantity on Hand or Calculate it Here is an article that describes the pros and cons, This will affect your overall design. Inventory Control: Quantity on Hand http://members.iinet.net.au/~allenbrowne/AppInventory.html pedro at plex.nl wrote: >Hello Group, > >What is the best way to do the following routine? > >I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. > >How can this been done. > >Thanks > >Pedro Janssen > > > > -- Marty Connelly Victoria, B.C. Canada From serbach at new.rr.com Fri Nov 5 13:21:48 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 5 Nov 2004 13:21:48 -0600 Subject: [AccessD] A2K/AXP Repllcation problem Message-ID: <20041105132148.1553325418.serbach@new.rr.com> Dear Group, I have one application that uses Replication, for better or for worse. At the moment I'm converting it into a web-based app useing .NET technologies. Wish me luck. But for now my client is still using replication. There are a few laptops that are taken all over the state and brought back to the home office for synchronizing. Today this error occured when the synchronization progress bar had gotten about half-way.: "Synchronization between replica 'C:\Apps...mdb' and replica '\\Dawn-mpc\...mdb' failed. The search key was not found in any record." (I removed the full UNC path to the database names. The database names are correct.) The help for this error says: "Error 3079 occurs when an ISAM SEEK is being executed and there are no matching values in the index." I have no clue as to which key or index in which table. I was told that synchronization took place last week flawlessly. Might the repair and compact option be called for here? What do you think? Steve Erbach Scientific Marketing Neenah, WI From carbonnb at sympatico.ca Fri Nov 5 15:14:42 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 05 Nov 2004 16:14:42 -0500 Subject: [AccessD] A2K:BackEnd Upgrader In-Reply-To: References: <026d01c4c32a$ef52f2d0$fa10a8c0@Albatross> Message-ID: <418BA6F2.2116.C0F2A8@localhost> On 5 Nov 2004 at 9:31, Reuben Cummings wrote: > Borge, I'm not sure about the latest version. I know I am using 1.58 > > I beleive there is a new version. Unfortunately it has some untested > stuff in it and therefore unreleased. > > Hopefully Andy or Bryan will see this and know more. I'll try to > contact them as well. Yep. 1.58 is the latest released version. There is a V1.59 in beta stages. I forget exactly what was changed/added between 1.58 and 1.59. I think it was the ability to handle a BE that is password protected, but I'm not sure. There is also a V2.01 in Alpha which allows it to work with a secured back end. -- Bryan Carbonnell - carbonnb at sympatico.ca Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. :) From stuart at lexacorp.com.pg Fri Nov 5 15:44:11 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Nov 2004 07:44:11 +1000 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Message-ID: <418C80CA.982.1DC2BEAE@lexacorp.com.pg> On 5 Nov 2004 at 8:42, Joe Rojas wrote: > Understood. > Is it bad for to store the actual data, when using text, if they all share > the same prefix? > There are pros and cons - you need to weigh them up and make a decision based on how you are going to be entering/using the data. -- Stuart From accessd at shaw.ca Fri Nov 5 23:36:00 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 05 Nov 2004 21:36:00 -0800 Subject: [AccessD] A2K: Speed up access over a network In-Reply-To: <200411050155.iA51tmXH015988@cooper.uws.edu.au> Message-ID: Hi Darren: Why not have a complete copy of the current DB on their laptop or remote computer and just sync the DBs. The process is usually very fast, even on a 56K link and then the tables can be re-synced back into the office master when updating is completed. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, November 04, 2004 5:56 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2K: Speed up access over a network Hello all I realise the q is very broad and has a million possible suggestions That's what I'm after I have a client who I am developing an app for. So far they are very pleased. But just the other day....They now want to be able to use the app after hours at home on their laptops. (And they are prepared to pay for this major re-direction) So this means connecting (in some cases) to the back end using dial up Am I in the wrong business here? Is this time to migrate the App to be browser based? (Which I know nothing about by the way) If you guys have successfully got your Access Apps to work at any decent sort of speed over dial up can you let me know how?? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Nov 6 22:08:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 06 Nov 2004 23:08:54 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> In Access we use MDA/Es to store libraries of reusable code. Is there an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these other platforms have references like we do in Access? If so, can you reference an MDA/E to use code in it? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Sat Nov 6 22:13:16 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 06 Nov 2004 23:13:16 -0500 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> I understand that you can use forms in Word, Excel and other Office apps. How capable are they? Do they have the same "code behind form" class for writing code in? Do the form controls have events in the same manner as Access? Are Withevents available? Are classes available, and if so, where are they stored? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jmhla at earthlink.net Sun Nov 7 00:14:47 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 6 Nov 2004 22:14:47 -0800 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> Message-ID: <200411070614.iA76EfL18940@databaseadvisors.com> John, Some Excel form info from John Walkenbachs page: http://j-walk.com/ss/excel/tips/userformtips.htm Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 06, 2004 8:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Forms in Word / Excel I understand that you can use forms in Word, Excel and other Office apps. How capable are they? Do they have the same "code behind form" class for writing code in? Do the form controls have events in the same manner as Access? Are Withevents available? Are classes available, and if so, where are they stored? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Sun Nov 7 04:53:10 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Sun, 7 Nov 2004 04:53:10 -0600 Subject: [AccessD] A2K/AXP Repllcation problem In-Reply-To: <20041105132148.1553325418.serbach@new.rr.com> References: <20041105132148.1553325418.serbach@new.rr.com> Message-ID: <20041107045310.1540446425.serbach@new.rr.com> Well, I found something over on Experts Exchange that may relate to this problem. It's a Microsoft KB article, Q301474. We'll see. Steve Erbach Neenah, WI > ------------Original Message------------ > From: "Steven W. Erbach" > To: "Access Developers discussion and problem solving" > Date: Fri, Nov-5-2004 1:41 PM > Subject: [AccessD] A2K/AXP Repllcation problem > > Dear Group, > > I have one application that uses Replication, for better or for worse. > At the moment I'm converting it into a web-based app useing .NET > technologies. Wish me luck. > > But for now my client is still using replication. There are a few > laptops that are taken all over the state and brought back to the home > office for synchronizing. Today this error occured when the synchronization > progress bar had gotten about half-way.: From dwaters at usinternet.com Sun Nov 7 07:40:33 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 Nov 2004 07:40:33 -0600 Subject: [AccessD] Remote Queries Message-ID: <000601c4c4cf$5b020570$de1811d8@danwaters> Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems From carbonnb at sympatico.ca Sun Nov 7 08:40:16 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 09:40:16 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <418DED80.20562.1724CE@localhost> On 6 Nov 2004 at 23:08, John W. Colby wrote: > In Access we use MDA/Es to store libraries of reusable code. Is there > an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do Word/Excel, Not that I've ever run across but then again I've never gone looking for that capability either. > these other platforms have references like we do in Access? If so, Yes. References are a VBE thing. > can you reference an MDA/E to use code in it? Never tried, but can't see why it wouldn't work. -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From carbonnb at sympatico.ca Sun Nov 7 08:47:36 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 09:47:36 -0500 Subject: [AccessD] Forms in Word / Excel In-Reply-To: <003001c4c480$1f6f43a0$e8dafea9@ColbyM6805> References: <200411050451.iA54pqXH022864@cooper.uws.edu.au> Message-ID: <418DEF38.30083.1DDC8C@localhost> On 6 Nov 2004 at 23:13, John W. Colby wrote: > I understand that you can use forms in Word, Excel and other Office > apps. How capable are they? Do they have the same "code behind form" Becareful with the word Forms in Word. There are several things that are called forms in Word. There are "Fill-In-Forms" wich is just a Word doc with fields in the doc that you fill in. Then there are UserForms, which is what I think you are asking about. They are similar to Access Forms, but more closely behave like VB Forms. > class for writing code in? Do the form controls have events in the Yes, the Userforms, which are available in Excel too, have class modules. > same manner as Access? Are Withevents available? Are classes Yes., but the more closely resemble VB controls. WithEvents are available from Office 97 Up, IIRC. > available, and if so, where are they stored? Yes, classes are available, but where they are stored depends. Word Document that you add the class too have the class stored in the .doc file. Word Templates that you add classes to have the class stored in the .dot file. Word Docuemnts that you create from a template that has classes in the template have the class stored in the .dot. Excel Workbooks that you add classes to have the classes stored in the .xls file Excel Templates that you add classes to have the classes stored in the .xlt file Excel Workbooks that you create from Excel Templates that have classes have the classes stored in the .xls file. IOW, all the code, userforms, etc from an Excel template gets copied into the new workbook you create. It can be a real PITA. How's that for a start and to raise more questions :) -- Bryan Carbonnell - carbonnb at sympatico.ca Following the rules will not get the job done. From martyconnelly at shaw.ca Sun Nov 7 13:02:38 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 07 Nov 2004 11:02:38 -0800 Subject: [AccessD] Modules and libraries in Office References: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> Message-ID: <418E714E.9030505@shaw.ca> In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there an >equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these >other platforms have references like we do in Access? If so, can you >reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Sun Nov 7 16:43:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 8 Nov 2004 09:43:59 +1100 Subject: [AccessD] A2K3 Bloating In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C744869F4@TTNEXCHCL2.hshhp.com> Message-ID: <200411072244.iA7Mi6XH003688@cooper.uws.edu.au> Hi Jim I work with Access 200 and 2003 I get good results with this method -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Saturday, 6 November 2004 1:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating Thanks Darren. Is this db you're compacting in 2002/2003 format or 2000? As I understand it a 2002/2003 format file would not compact down like that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Wednesday, November 03, 2004 5:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K3 Bloating Hi Jim I think the issue is still there - maybe lessened, but still there If you have access to the app perhaps try this... I get into the code area and compile it I have an icon Called DECOMPILE in the SendTo folder of AllUsers that points to C:\ProgramFiles\Microsoft Office\OfficeXX\MSACCESS.exe /decompile (Replace the path with your Access Path) Then I right click the dB or the db's shortcut icon and click SendTo and select DECOMPILE Then I get into the dB and Compact and repair it. I can get a 9 meg monster down to about 1.8 - 2 megs Do it every time I deliver a fresh version or app HTH See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, 4 November 2004 7:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating What file format are you using? Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, November 03, 2004 12:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K3 Bloating I use A2K3 for a while now, I believe I never experienced a, out of the ordinary, bloating in A2K3. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, November 03, 2004 8:02 PM To: AccessD (E-mail) Subject: [AccessD] A2K3 Bloating List, Has M$ addressed the database bloating issue in A2K3 I've read about on the list? We're in the process of converting our A97 apps to A2K3 and I'm trying to decide between A2K format or A2K3. Any suggestions? TIA, Jim DeMarco Director Application Development Hudson Health Plan Tarrytown, NY ************************************************************************ *********** "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 **************************************************************************** ******* "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 KP at sdsonline.net Sun Nov 7 17:49:48 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 8 Nov 2004 10:49:48 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <006901c4c524$782fce70$6401a8c0@user> Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 7 18:37:56 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 07 Nov 2004 16:37:56 -0800 Subject: [AccessD] Date() not working - MDAC issue or not? In-Reply-To: <006901c4c524$782fce70$6401a8c0@user> Message-ID: Hi Kath: This problem you are having sounds like a very old problem, about four to five years ago, that I had on a site that had just been upgraded to A2K. Neither the Date(), Format() etc., commands would work. The solution turned out to be a simple update from MS. The problem only happened with upgrades and not with full installs. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Sunday, November 07, 2004 3:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 KP at sdsonline.net Sun Nov 7 19:14:17 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 8 Nov 2004 12:14:17 +1100 Subject: [AccessD] Date() not working - MDAC issue or not? References: Message-ID: <001e01c4c530$45561cf0$6401a8c0@user> I remember this happening back then too - with Win98 users - but I have never seen it with Win 2K pro or WinXP Pro. Back then I remember it was the MDAC version - but now - who knows. Kath ----- Original Message ----- From: Jim Lawrence (AccessD) To: Access Developers discussion and problem solving Sent: Monday, November 08, 2004 11:37 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Hi Kath: This problem you are having sounds like a very old problem, about four to five years ago, that I had on a site that had just been upgraded to A2K. Neither the Date(), Format() etc., commands would work. The solution turned out to be a simple update from MS. The problem only happened with upgrades and not with full installs. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Sunday, November 07, 2004 3:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? Charlotte - no - no ref to mde - thanks anyway Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Saturday, November 06, 2004 3:14 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Are you referencing an MDE at all? We found that we had similar problems with an app when the code library we were referencing was in the application folder, since the user is allowed to determine the app folder at installation. Even though the reference appeared to be resolved, it required unsetting it and then resetting it before things got back to normal. We solved the problem by putting the mde in the runtime folder, which we install to a fixed location. After that, we stopped having that particular problem. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Thursday, November 04, 2004 7:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date() not working - MDAC issue or not? For now I have got client back online - I was able to remote access the PC, remove the references to DAO and ADO, save, reopen the refs window, select the DAO and ADO again (in that order) and recompile. That seems to have the date() function back for them again. Strangely though, there are still a few errors with format(). Kath ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Friday, November 05, 2004 11:13 AM Subject: RE: [AccessD] Date() not working - MDAC issue or not? Kath, A few years ago I noticed this problem on a few computers, and it was a sporadic problem. To get around it I put the following in a standard module: Public Function CurrentDate() As Date CurrentDate = CDate(DatePart("m", Now()) & "/" & DatePart("d", Now()) _ & "/" & DatePart("yyyy", Now())) Exit Function End Function Now whenever I need the current date I just write: txtDate = CurrentDate No problems for several years now! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, November 04, 2004 4:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Date() not working - MDAC issue or not? Hoping someone can shed some light here.... A client using Windows 2000 Pro and Access 2000 has been using an mdb written in Access 2000 for several years. But this week when I installed an upgrade (same platform), the Date() functions throw errors, as do the Format() functions. They have a critical error at the moment caused by Date() notworking which I need to fix today. I know I could modify these functions to use, eg. Now(), but is this a MDAC problem? Mine is MDAC 2.7 on Windows XP SP1. If I asked my client to download MDAC 2.8 (which I see is the latest) - is this going to solve the problem? I do not understand how this upgrade could possible have afftected the use of these functions?? Thanks Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sun Nov 7 19:36:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 20:36:55 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418E714E.9030505@shaw.ca> Message-ID: <000001c4c533$71eabe30$e8dafea9@ColbyM6805> Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 jwcolby at colbyconsulting.com Sun Nov 7 19:37:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 20:37:56 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418DED80.20562.1724CE@localhost> Message-ID: <000101c4c533$959af160$e8dafea9@ColbyM6805> I tried from Word and it definitely doesn't work. Haven't tried yet from Excel etc but I am not optimistic. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Sunday, November 07, 2004 9:40 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Modules and libraries in Office On 6 Nov 2004 at 23:08, John W. Colby wrote: > In Access we use MDA/Es to store libraries of reusable code. Is there > an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do Word/Excel, Not that I've ever run across but then again I've never gone looking for that capability either. > these other platforms have references like we do in Access? If so, Yes. References are a VBE thing. > can you reference an MDA/E to use code in it? Never tried, but can't see why it wouldn't work. -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Sun Nov 7 20:26:30 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 07 Nov 2004 21:26:30 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <000101c4c533$959af160$e8dafea9@ColbyM6805> References: <418DED80.20562.1724CE@localhost> Message-ID: <418E9306.22911.29DB85D@localhost> On 7 Nov 2004 at 20:37, John W. Colby wrote: > I tried from Word and it definitely doesn't work. Haven't tried yet > from Excel etc but I am not optimistic. Well, I just went looking and it looks like that you would need to create a VB DLL for a code library to share code across all the Office apps. BTW, you can't reference an md[a|e] in Excel Excel templates and worksheets only. I just checked :( -- Bryan Carbonnell - carbonnb at sympatico.ca When you don't know what to do, walk fast and look worried. From michael.mattys at adelphia.net Sun Nov 7 21:16:23 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Sun, 7 Nov 2004 22:16:23 -0500 Subject: [AccessD] Modules and libraries in Office References: <000001c4c533$71eabe30$e8dafea9@ColbyM6805> Message-ID: <00f501c4c541$54594860$6401a8c0@default> John, Are you talking about the designers? I thought you could have a common standard or class module within the dll, and just pass in the Application object as Object. Then just Select Case to perform the appropriate action. I'll look again, but I'm pretty sure that's it. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 8:36 PM Subject: RE: [AccessD] Modules and libraries in Office > Holy cow, is that a mish mash or what? The point of my questions was to try > to find a common ground where code could be stored and run from all of the > various office applications. Not to be it would seem. It does seem bizarre > that if I had some function that should be able to run in any of the apps I > have to save the same thing in 5 different places so that Access, Excel, > Word, Powerpoint and Outlook could use it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Sunday, November 07, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > In Excel you can store functions and modules as Public in .xla files. > Old Excel pre 97 didn't store the code in xla it > looked like an mde file. Matter of fact you can call these .xla files > from Access. I have called functions from the Excel Statistical and > Financial Analysis Packs. > > In Outlook 2000 and any code that you create in the Outlook VBA > environment is stored in a file named VBAProject.otm. > Even though you can copy the VBAProject.otm file, that's not a good way > to distribute Outlook macros company-wide. The recommended method is to > create an Outlook or Word COM add-in. Talk to Shamil he has been > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > http://www.outlookcode.com/d/comaddins.htm > > Word uses templates either user or workgroup (to be shared) in a > specific folder > A template contain macros or other customizations such as toolbars, it > works better from some locations than others. > Again these com addin's can be used in place of macro's. > see > http://word.mvps.org/FAQs/index.htm > > Just for future reference this method is also partially available under > word and excel > > Under the Tools/References menu in the VBE, you need to check the Microsoft > Visual Basic for Applications Extensibility 5.3 object library. Microsoft > Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common > Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > The following code exports the contents of the Code Module to a file called > test.bas. This can be run from Word or Excel > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas") > I think you can also import code this way but never tried it or got it > to work or something. > > John W. Colby wrote: > > >In Access we use MDA/Es to store libraries of reusable code. Is there > >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do > >these other platforms have references like we do in Access? If so, can > >you reference an MDA/E to use code in it? > > > >John W. Colby > >www.ColbyConsulting.com > > > >Contribute your unused CPU cycles to a good cause: > >http://folding.stanford.edu/ > > > > > > > > > > -- > 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 jwcolby at colbyconsulting.com Sun Nov 7 21:46:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 07 Nov 2004 22:46:59 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <00f501c4c541$54594860$6401a8c0@default> Message-ID: <000301c4c545$9e1d9290$e8dafea9@ColbyM6805> No, I'm talking about an application framework where the code is available to any Office application. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 10:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office John, Are you talking about the designers? I thought you could have a common standard or class module within the dll, and just pass in the Application object as Object. Then just Select Case to perform the appropriate action. I'll look again, but I'm pretty sure that's it. ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 8:36 PM Subject: RE: [AccessD] Modules and libraries in Office > Holy cow, is that a mish mash or what? The point of my questions was > to try > to find a common ground where code could be stored and run from all of > the various office applications. Not to be it would seem. It does > seem bizarre > that if I had some function that should be able to run in any of the > apps I > have to save the same thing in 5 different places so that Access, > Excel, Word, Powerpoint and Outlook could use it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: Sunday, November 07, 2004 2:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > In Excel you can store functions and modules as Public in .xla files. > Old Excel pre 97 didn't store the code in xla it looked like an mde > file. Matter of fact you can call these .xla files from Access. I have > called functions from the Excel Statistical and Financial Analysis > Packs. > > In Outlook 2000 and any code that you create in the Outlook VBA > environment is stored in a file named VBAProject.otm. Even though you > can copy the VBAProject.otm file, that's not a good way to distribute > Outlook macros company-wide. The recommended method is to create an > Outlook or Word COM add-in. Talk to Shamil he has been upgrading com > addins to dotnet. http://www.outlookcode.com/d/vb.htm > http://www.outlookcode.com/d/comaddins.htm > > Word uses templates either user or workgroup (to be shared) in a > specific folder A template contain macros or other customizations > such as toolbars, it works better from some locations than others. > Again these com addin's can be used in place of macro's. > see > http://word.mvps.org/FAQs/index.htm > > Just for future reference this method is also partially available > under word and excel > > Under the Tools/References menu in the VBE, you need to check the Microsoft > Visual Basic for Applications Extensibility 5.3 object library. > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > The following code exports the contents of the Code Module to a file called > test.bas. This can be run from Word or Excel > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.b > as") > I think you can also import code this way but never tried it or got it > to work or something. > > John W. Colby wrote: > > >In Access we use MDA/Es to store libraries of reusable code. Is > >there an equivalent for Word / Excel / Outlook etc (the rest of > >Office)? Do these other platforms have references like we do in > >Access? If so, can you reference an MDA/E to use code in it? > > > >John W. Colby > >www.ColbyConsulting.com > > > >Contribute your unused CPU cycles to a good cause: > >http://folding.stanford.edu/ > > > > > > > > > > -- > 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 michael.mattys at adelphia.net Sun Nov 7 22:08:34 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Sun, 7 Nov 2004 23:08:34 -0500 Subject: [AccessD] Modules and libraries in Office References: <000301c4c545$9e1d9290$e8dafea9@ColbyM6805> Message-ID: <012101c4c548$a06160b0$6401a8c0@default> Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is available > to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the dll, > and just pass in the Application object as Object. Then just Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions was > > to > try > > to find a common ground where code could be stored and run from all of > > the various office applications. Not to be it would seem. It does > > seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla files. > > Old Excel pre 97 didn't store the code in xla it looked like an mde > > file. Matter of fact you can call these .xla files from Access. I have > > called functions from the Excel Statistical and Financial Analysis > > Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though you > > can copy the VBAProject.otm file, that's not a good way to distribute > > Outlook macros company-wide. The recommended method is to create an > > Outlook or Word COM add-in. Talk to Shamil he has been upgrading com > > addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. > > see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 jwcolby at colbyconsulting.com Mon Nov 8 06:35:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 07:35:39 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <012101c4c548$a06160b0$6401a8c0@default> Message-ID: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Mon Nov 8 09:38:45 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 8 Nov 2004 10:38:45 -0500 Subject: [AccessD] Missing months in a crosstab query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From DWUTKA at marlow.com Mon Nov 8 09:45:13 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 8 Nov 2004 09:45:13 -0600 Subject: [AccessD] Remote Queries Message-ID: <123701F54509D9119A4F00D0B747349016D06C@main2.marlow.com> There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Mon Nov 8 09:50:00 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 08 Nov 2004 10:50:00 -0500 Subject: [AccessD] Missing months in a crosstab query References: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> Message-ID: <418F95A8.4040102@torchlake.com> Hi Susan, If you create an OUTER JOIN rather than an INNER JOIN to show all records in the table that holds the months, I think you will solve your problem. I can't tell you how many times I have had to rediscover the basic truth that INNER JOIN means I will see only those records with matching field entries in both tables. HTH, Tina Klos, Susan wrote: >I have the following crosstab query which I am using to bind to a report: > >TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] > >SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin >occupancy/Midweek") AS Type, "Cabin" AS Category > >FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = >tlnklodgingEvent.EventID > >WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or >(tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) > >GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin >occupancy/Midweek"), "Cabin" > >PIVOT Month(tblEvent.Beginningdate); > > > >I want to have the report show all months even though there may be no data >for a particular month. In the above query, I get data for January through >June and September through December. Nobody stayed in cabins during July >and August. So in the report I want to show zeroes in those columns. I >tried using text boxes and IIF statements to test for null but I knew that >wouldn't work because month numbers 7 and 8 aren't null they just don't >exist in the query. I tried looking in help to see if there was an "if >exists" function to see if I could see if the field exists in the query. I >couldn't find anything like that. Should I be working at the query level >instead to have the query insert a zero if there are months missing? If so >I will need help on that also. Thanks in advance for any help. > > > >Susan Klos > >Senior Database Analyst > >Evaluation and Reporting > >Florida Department of Education > >850-245-0708 > >sc 205-0708 > > > > > From cfoust at infostatsystems.com Mon Nov 8 10:27:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Nov 2004 08:27:46 -0800 Subject: [AccessD] Modules and libraries in Office Message-ID: But remember, Access doesn't use the same kind of forms that VB and the other Office apps use. If you want to share code, create a dll and reference it in the various projects. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, November 07, 2004 5:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas ") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 dispec.com Mon Nov 8 11:06:07 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 8 Nov 2004 12:06:07 -0500 Subject: [AccessD] Modules and libraries in Office Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF959@DISABILITYINS01> This is an area that provides a stark glimpse into the disparate roots of the various Office Applications. There is plenty of code that can / should run in any of the applications. Aside from the fact that I use a table to pull initialization values for the framework, the framework itself (or at least the foundation) has nothing whatsoever that is platform specific. It sets itself up, it provides hooks for services such as zip / unzip, ftp, error logging etc. All of that is just VBA. No references to forms or reports. All that stuff should work just fine from Word, Excel, Outlook etc. There are developers who create entire applications around Outlook for example. They live, breath and die inside Outlook. Yet the framework could provide a valid foundation for an Outlook application just as easily as for an Access application. Of course a DLL can be created, but that is nowhere near as simple as what can be done in Access (for example) where the app and the mda are placed in the same dir, the app references the mda and starts using it. No visual basic compiler, no registration of a DLL, no registry keys, no nada. Just use it. I played around with Excel this morning for a few minutes. I was able to create a class. I could not for the life of me figure out how to change the NAME of the class although it is probably possible somewhere. I could place an ocx combo (for example) on a spreadsheet. I could set the combo to bind to a cell, take its values from a range. The combo can fire events handled in the sheet's module. I could dim a variable for a class which sinks the combo events etc. etc. All the pieces are there to write pretty powerful aps from right inside Excel. Very similar, yet distinctly different from doing it in Access. So now I have a framework that is just VBA, but it is in an Access MDA. In order to use it in Excel I have to either somehow move it all out to an excel set of classes / modules, stored in a workbook or something, or go to an entirely external environment, use a compiler to create a dll, then install and reference that dll. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, November 08, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office But remember, Access doesn't use the same kind of forms that VB and the other Office apps use. If you want to share code, create a dll and reference it in the various projects. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, November 07, 2004 5:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office Holy cow, is that a mish mash or what? The point of my questions was to try to find a common ground where code could be stored and run from all of the various office applications. Not to be it would seem. It does seem bizarre that if I had some function that should be able to run in any of the apps I have to save the same thing in 5 different places so that Access, Excel, Word, Powerpoint and Outlook could use it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, November 07, 2004 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office In Excel you can store functions and modules as Public in .xla files. Old Excel pre 97 didn't store the code in xla it looked like an mde file. Matter of fact you can call these .xla files from Access. I have called functions from the Excel Statistical and Financial Analysis Packs. In Outlook 2000 and any code that you create in the Outlook VBA environment is stored in a file named VBAProject.otm. Even though you can copy the VBAProject.otm file, that's not a good way to distribute Outlook macros company-wide. The recommended method is to create an Outlook or Word COM add-in. Talk to Shamil he has been upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm http://www.outlookcode.com/d/comaddins.htm Word uses templates either user or workgroup (to be shared) in a specific folder A template contain macros or other customizations such as toolbars, it works better from some locations than others. Again these com addin's can be used in place of macro's. see http://word.mvps.org/FAQs/index.htm Just for future reference this method is also partially available under word and excel Under the Tools/References menu in the VBE, you need to check the Microsoft Visual Basic for Applications Extensibility 5.3 object library. Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB The following code exports the contents of the Code Module to a file called test.bas. This can be run from Word or Excel Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test.bas ") I think you can also import code this way but never tried it or got it to work or something. John W. Colby wrote: >In Access we use MDA/Es to store libraries of reusable code. Is there >an equivalent for Word / Excel / Outlook etc (the rest of Office)? Do >these other platforms have references like we do in Access? If so, can >you reference an MDA/E to use code in it? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- 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 accessd at shaw.ca Mon Nov 8 11:30:00 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 09:30:00 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> Message-ID: How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Mon Nov 8 11:48:54 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 8 Nov 2004 12:48:54 -0500 Subject: [AccessD] Modules and libraries in Office Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF95A@DISABILITYINS01> LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Jim.Hale at FleetPride.com Mon Nov 8 13:09:23 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Nov 2004 13:09:23 -0600 Subject: [AccessD] Missing months in a crosstab query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203@corp-es01.fleetpride.com> Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale -----Original Message----- From: Klos, Susan [mailto:Susan.Klos at fldoe.org] Sent: Monday, November 08, 2004 9:39 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Missing months in a crosstab query I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Mon Nov 8 13:26:36 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 08 Nov 2004 11:26:36 -0800 Subject: [AccessD] Modules and libraries in Office References: <000801c4c58f$74a397d0$e8dafea9@ColbyM6805> Message-ID: <418FC86C.5000306@shaw.ca> It gets even more complex from .dotnet framework calling Com via PIA with Word 2003 and Excel.2003 You might only get away with this, using Application Objects, available in most MS object models. For example this code should be callable from any VBA editor Word, Excel, Access or PowerPoint Instead of InternetExplorer.application below you could use Word.Application etc Try this code for a chuckle useful if you have to display large amount of scrollable text in Access. This will need WMI installed on the machine, either WinXP or win2000 for the WMI portion of example to run. Win 98 can install WMI 1.5 but may not work Sub testIE() '------------------ ' qfcheck.vbs ver 1.0 3-Dec-2003 ' Check Automatic Update Installation History for Hotfixes '------------------ 'http://www.microsoft.com/technet/treeview/default.asp? url=/technet/scriptcenter/logs/scrlog08.asp Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" 'need this to open IE correctly or use url objExplorer.Toolbar = 0 'set to 1 to turn on IE toolbar objExplorer.StatusBar = 0 'set to 1 to turn on objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringTodate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringTodate(dtmDate) 'sorts out odd date structure WMIDateStringTodate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function John W. Colby wrote: >I am proposing a book to a publisher I just finished writing for, which will >be about reusable code for Microsoft Access specifically, modules, classes, >libraries and frameworks. > >I was hoping to find a way to make the code accessible to different >platforms should someone be more comfortable working in Word or Excel. >While a com object would certainly accomplish this, it involves tools (and >expertise) outside of the office suite. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys >Sent: Sunday, November 07, 2004 11:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Modules and libraries in Office > > >Maybe I'm misunderstanding, but ... > >(From Q230225) >COM add-ins are a new feature in Microsoft Office 2000 >and are supported by all Office programs, including Outlook. > >Key benefits of COM add-ins include: > >COM add-ins run in-process with the host program, so custom code generally >runs faster than code implemented in Visual Basic for Applications. > >The basic COM add-in architecture is consistent across all Office programs, >whereas in previous versions of Office, each program had its own add-in >architecture. > >You can create one COM add-in to use with more than one Office program. > >Example: > >http://support.microsoft.com/kb/238228 > >---- > >Michael R. Mattys >Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > >----- Original Message ----- >From: "John W. Colby" >To: "'Access Developers discussion and problem solving'" > >Sent: Sunday, November 07, 2004 10:46 PM >Subject: RE: [AccessD] Modules and libraries in Office > > > > >>No, I'm talking about an application framework where the code is >>available to any Office application. >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R >> >> >Mattys > > >>Sent: Sunday, November 07, 2004 10:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Modules and libraries in Office >> >> >>John, >> >>Are you talking about the designers? >> >>I thought you could have a common standard or class module within the >>dll, and just pass in the Application object as Object. Then just >>Select Case >> >> >to > > >>perform the appropriate action. I'll look again, but I'm pretty sure >> >> >that's > > >>it. >> >>---- >> >>Michael R. Mattys >>Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com >> >> >> >>----- Original Message ----- >>From: "John W. Colby" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Sunday, November 07, 2004 8:36 PM >>Subject: RE: [AccessD] Modules and libraries in Office >> >> >> >> >>>Holy cow, is that a mish mash or what? The point of my questions >>>was to >>> >>> >>try >> >> >>>to find a common ground where code could be stored and run from all >>>of the various office applications. Not to be it would seem. It >>>does seem >>> >>> >>bizarre >> >> >>>that if I had some function that should be able to run in any of the >>>apps >>> >>> >>I >> >> >>>have to save the same thing in 5 different places so that Access, >>>Excel, Word, Powerpoint and Outlook could use it. >>> >>>John W. Colby >>>www.ColbyConsulting.com >>> >>>Contribute your unused CPU cycles to a good cause: >>>http://folding.stanford.edu/ >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: Sunday, November 07, 2004 2:03 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] Modules and libraries in Office >>> >>> >>>In Excel you can store functions and modules as Public in .xla >>>files. Old Excel pre 97 didn't store the code in xla it looked like >>>an mde file. Matter of fact you can call these .xla files from >>>Access. I have called functions from the Excel Statistical and >>>Financial Analysis Packs. >>> >>>In Outlook 2000 and any code that you create in the Outlook VBA >>>environment is stored in a file named VBAProject.otm. Even though >>>you can copy the VBAProject.otm file, that's not a good way to >>>distribute Outlook macros company-wide. The recommended method is to >>>create an Outlook or Word COM add-in. Talk to Shamil he has been >>>upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm >>>http://www.outlookcode.com/d/comaddins.htm >>> >>>Word uses templates either user or workgroup (to be shared) in a >>>specific folder A template contain macros or other customizations >>>such as toolbars, it works better from some locations than others. >>>Again these com addin's can be used in place of macro's. see >>>http://word.mvps.org/FAQs/index.htm >>> >>>Just for future reference this method is also partially available >>>under word and excel >>> >>>Under the Tools/References menu in the VBE, you need to check the >>> >>> >>Microsoft >> >> >>>Visual Basic for Applications Extensibility 5.3 object library. >>>Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program >>>Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB >>> >>> >>>The following code exports the contents of the Code Module to a file >>> >>> >>called >> >> >>>test.bas. This can be run from Word or Excel >>> >>>Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test >>>.b >>>as") >>>I think you can also import code this way but never tried it or got it >>>to work or something. >>> >>>John W. Colby wrote: >>> >>> >>> >>>>In Access we use MDA/Es to store libraries of reusable code. Is >>>>there an equivalent for Word / Excel / Outlook etc (the rest of >>>>Office)? Do these other platforms have references like we do in >>>>Access? If so, can you reference an MDA/E to use code in it? >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>>Contribute your unused CPU cycles to a good cause: >>>>http://folding.stanford.edu/ >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>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 >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Mon Nov 8 14:51:40 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 12:51:40 -0800 Subject: [AccessD] Remote Queries In-Reply-To: <123701F54509D9119A4F00D0B747349016D06C@main2.marlow.com> Message-ID: Just a note: There might be a better way to handle access to the remote database. It will not solve the problem if the database location is changed but it will handle the security issue. See: http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDB ProviderForMicrosoftJet for ADO connection string Set variables like: Dim gstrConnection As String Dim gconMYRemoteDB As ADODB.Command Dim strSQL as String Public rsMyRecordset As ADODB.Recordset gstrConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Databases\Process.mdb;" & _ "Jet OLEDB:System Database=MySystem.mdw", _ "myUsername", "myPassword" Set gconMYRemoteDB = New ADODB.Command With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "Select * from MyTable Where MyFirstField = 1" .CommandType = adCmdText End With ...or... if you are using a query from the remote DB that has a parameter you would use something like this... With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "qryMyQueryName" .CommandType = adCmdStoredProc .Parameters.Append .CreateParameter("NameofParameterToFill", adChar, adParamInput, 10, strParameterValueToPass) End With 'To fill a recordset Set rsMyRecordset = New ADODB.Recordset With rsMyRecordset .CursorLocation = adUseClient ' Note; dynamic and record locking. Mandatory for multi-user ' environments as MDBs are not as sophisticated as SQL servers ' and that implies code to manage record data changes or conflicts. .Open gconMYRemoteDB, , adOpenDynamic, adLockOptimistic If .BOF = False Or .EOF = False Then .MoveLast End With ...or to simply execute a command... strSQL = "INSERT INTO MyTable ( MyField1, MyField2 ) " & _ "VALUES(" & Str(Variable1) & ", '" & Variable2 & "')" gconMYRemoteDB.Execute strSQL Set gconMYRemoteDB = Nothing This way is ideal as you can have as many DBs open as you wish (within system limits of course), all at once. This also manages the issues of security. Hopefully that DBs do not wander around to frequently so that their locations have to be continually managed. (Note that previous was done from memory with limited reliability.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, November 08, 2004 7:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remote Queries There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:00:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 13:00:08 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF95A@DISABILITYINS01> Message-ID: WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got it > > to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:35:36 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 8 Nov 2004 22:35:36 +0100 Subject: [AccessD] how to do this? References: <200411050926.iA59QM8s014181@mailhostC.plex.net> <418BAEDB.7090507@shaw.ca> Message-ID: <001501c4c5da$e3c3d120$f8c581d5@pedro> Thank you Marty, this is very usefull. Pedro Janssen ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, November 05, 2004 5:48 PM Subject: Re: [AccessD] how to do this? > Well you can either store the Quantity on Hand or Calculate it > Here is an article that describes the pros and cons, This will affect > your overall design. > Inventory Control: Quantity on Hand > http://members.iinet.net.au/~allenbrowne/AppInventory.html > > > pedro at plex.nl wrote: > > >Hello Group, > > > >What is the best way to do the following routine? > > > >I have a form with a field: [ArticleNumber]. I am scanning a barcode and the Article Number is placed in the field. When the Article number is placed this number must be processed as Follows; (in the table behind the form is also a field: [Quantity]) the value of [Quantity] must be decreased with 1. When the amount of [Quantity] reaches a certain minimum a message box must appear. > > > >How can this been done. > > > >Thanks > > > >Pedro Janssen > > > > > > > > > > -- > 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 jwcolby at colbyconsulting.com Mon Nov 8 15:41:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 16:41:50 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: Message-ID: <001d01c4c5db$c59dcf60$e8dafea9@ColbyM6805> I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 15:47:56 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 8 Nov 2004 22:47:56 +0100 Subject: [AccessD] difficult query?? Message-ID: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Hello Group, i have a table [tblA] with 20 fields. One of these fields [Number] has a value from 1 to 25. I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other fields must also be present. for example i have tblA ID fieldA Number etc etc etc 1 A 3 i need ID fieldA Number etc etc etc 1 A X 1 A X 1 A X Can this been done? Thanks Pedro Janssen From cfoust at infostatsystems.com Mon Nov 8 16:04:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Nov 2004 14:04:35 -0800 Subject: [AccessD] Modules and libraries in Office Message-ID: Didn't aPress buy some of them as well? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, November 08, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mon Nov 8 16:13:22 2004 From: starkey at wanadoo.nl (StaRKeY) Date: Mon, 8 Nov 2004 23:13:22 +0100 Subject: [AccessD] difficult query?? In-Reply-To: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Message-ID: <20041108220911.E970EE7@smtp4.wanadoo.nl> Hi Pedro, Must this be done in SQL/query or are you allowed to use a loop? If you can use a loop I'd use the number field in a nested loop (eg. 1 to nr.) to add all records into a new table having the numberfield filled with 'X. Regards, Eric Starkenburg -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen Verzonden: maandag 8 november 2004 22:48 Aan: AccessD at databaseadvisors.com Onderwerp: [AccessD] difficult query?? Hello Group, i have a table [tblA] with 20 fields. One of these fields [Number] has a value from 1 to 25. I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other fields must also be present. for example i have tblA ID fieldA Number etc etc etc 1 A 3 i need ID fieldA Number etc etc etc 1 A X 1 A X 1 A X Can this been done? Thanks Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 Getest op: 8-11-2004 23:13:21 avast! auteursrecht (c) 2000-2004 ALWIL Software. From jwcolby at colbyconsulting.com Mon Nov 8 16:26:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 08 Nov 2004 17:26:38 -0500 Subject: [AccessD] Modules and libraries in Office In-Reply-To: Message-ID: <002001c4c5e2$07f2a600$e8dafea9@ColbyM6805> I'm not sure really. Since mine was bought by Wiley I kind of lost interest in the rest. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 08, 2004 5:05 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office Didn't aPress buy some of them as well? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Monday, November 08, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I think Wiley bought some of the books and the trademark. The book I worked on still sells. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 4:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office WROX is gone?!! :-( Just bought one of their VB.Net books. I have so many of their books around here I feel like an advertisement. There must be thousands of their book currently in the system as many local bookstores still have many of their books on their shelves. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, November 08, 2004 9:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office LOL. You know the old saying "Its not what you know but who you know.". Martin gave my name to Wrox. I worked on one book for them then they went bankrupt (hopefully through no fault of mine!). Pieces were bought by Wiley including the book I worked on. They then contacted me about another project. I want to do my own project though. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Monday, November 08, 2004 12:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Modules and libraries in Office How many book writers does that make within the list? An impressive group of individuals. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, November 08, 2004 4:36 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Modules and libraries in Office I am proposing a book to a publisher I just finished writing for, which will be about reusable code for Microsoft Access specifically, modules, classes, libraries and frameworks. I was hoping to find a way to make the code accessible to different platforms should someone be more comfortable working in Word or Excel. While a com object would certainly accomplish this, it involves tools (and expertise) outside of the office suite. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, November 07, 2004 11:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office Maybe I'm misunderstanding, but ... (From Q230225) COM add-ins are a new feature in Microsoft Office 2000 and are supported by all Office programs, including Outlook. Key benefits of COM add-ins include: COM add-ins run in-process with the host program, so custom code generally runs faster than code implemented in Visual Basic for Applications. The basic COM add-in architecture is consistent across all Office programs, whereas in previous versions of Office, each program had its own add-in architecture. You can create one COM add-in to use with more than one Office program. Example: http://support.microsoft.com/kb/238228 ---- Michael R. Mattys Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Sunday, November 07, 2004 10:46 PM Subject: RE: [AccessD] Modules and libraries in Office > No, I'm talking about an application framework where the code is > available to any Office application. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys > Sent: Sunday, November 07, 2004 10:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Modules and libraries in Office > > > John, > > Are you talking about the designers? > > I thought you could have a common standard or class module within the > dll, and just pass in the Application object as Object. Then just > Select Case to > perform the appropriate action. I'll look again, but I'm pretty sure that's > it. > > ---- > > Michael R. Mattys > Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, November 07, 2004 8:36 PM > Subject: RE: [AccessD] Modules and libraries in Office > > > > Holy cow, is that a mish mash or what? The point of my questions > > was to > try > > to find a common ground where code could be stored and run from all > > of the various office applications. Not to be it would seem. It > > does seem > bizarre > > that if I had some function that should be able to run in any of the > > apps > I > > have to save the same thing in 5 different places so that Access, > > Excel, Word, Powerpoint and Outlook could use it. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: Sunday, November 07, 2004 2:03 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Modules and libraries in Office > > > > > > In Excel you can store functions and modules as Public in .xla > > files. Old Excel pre 97 didn't store the code in xla it looked like > > an mde file. Matter of fact you can call these .xla files from > > Access. I have called functions from the Excel Statistical and > > Financial Analysis Packs. > > > > In Outlook 2000 and any code that you create in the Outlook VBA > > environment is stored in a file named VBAProject.otm. Even though > > you can copy the VBAProject.otm file, that's not a good way to > > distribute Outlook macros company-wide. The recommended method is to > > create an Outlook or Word COM add-in. Talk to Shamil he has been > > upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm > > http://www.outlookcode.com/d/comaddins.htm > > > > Word uses templates either user or workgroup (to be shared) in a > > specific folder A template contain macros or other customizations > > such as toolbars, it works better from some locations than others. > > Again these com addin's can be used in place of macro's. see > > http://word.mvps.org/FAQs/index.htm > > > > Just for future reference this method is also partially available > > under word and excel > > > > Under the Tools/References menu in the VBE, you need to check the > Microsoft > > Visual Basic for Applications Extensibility 5.3 object library. > > Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program > > Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB > > > > > > The following code exports the contents of the Code Module to a file > called > > test.bas. This can be run from Word or Excel > > > > Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test > > .b > > as") > > I think you can also import code this way but never tried it or got > > it to work or something. > > > > John W. Colby wrote: > > > > >In Access we use MDA/Es to store libraries of reusable code. Is > > >there an equivalent for Word / Excel / Outlook etc (the rest of > > >Office)? Do these other platforms have references like we do in > > >Access? If so, can you reference an MDA/E to use code in it? > > > > > >John W. Colby > > >www.ColbyConsulting.com > > > > > >Contribute your unused CPU cycles to a good cause: > > >http://folding.stanford.edu/ > > > > > > > > > > > > > > > > -- > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 8 18:27:51 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 01:27:51 +0100 Subject: [AccessD] OT: Powerpoint Autoexec? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> How can I automaticaly run a VBA sub routine in Powerpoint when the presentation is loaded??? Like the auotexec macro in Access. thx 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 martyconnelly at shaw.ca Mon Nov 8 22:44:01 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 08 Nov 2004 20:44:01 -0800 Subject: [AccessD] OT: Powerpoint Autoexec? References: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> Message-ID: <41904B11.7060506@shaw.ca> Powerpoint mvps http://www.mvps.org/links.html#PowerPoint Here is how to start from Access http://www.mvps.org/skp/vb/vbppt001.htm or look through here http://www.mvps.org/links.html#PowerPoint Erwin Craps - IT Helps wrote: >How can I automaticaly run a VBA sub routine in Powerpoint when the >presentation is loaded??? >Like the auotexec macro in Access. > >thx > > > >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 > > > > -- Marty Connelly Victoria, B.C. Canada From ebarro at afsweb.com Mon Nov 8 22:44:29 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 8 Nov 2004 20:44:29 -0800 Subject: [AccessD] leveraging the power of the database versus code In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B54FC@stekelbes.ithelps.local> Message-ID: Cross-posted to dba-SQLServer list: Ok I need to generate a crosstab query (aka pivot table) using SQL server. The problem with SQL server is that it can't handle dynamically generated columns. In other words you would need to hard code the names of the columns which assumes that you know them beforehand. However, in most cases, the column values could not be determined ahead of time. Access of course handles this with great aplomb. But SQL server? Well...that's another story. :) So...I found a way to do this utilizing a stored procedure that dynamically generates the SELECT statements and uses a temporary table to store the values. You'd think that would be the end of the story...BUT the dba balked at the proposed method since according to him SQL server was not designed to handle this sort of stuff and that the dynamically generated SELECT statements would be highly inefficient. My question then to the group is this... Is it not better to let SQL server handle the load and the processing on the server side rather than let the client side handle all that processing? To take an example: State Product1 Product2 Product3 CA 1000 500 200 MA 900 200 450 NV 600 600 600 where Products are dynamically generated The method I discovered to produce the desired results using a stored procedure worked. The suggestion I got was to handle all of that processing in code (outside of SQL server). Which means that in order to produce the desired results above, the code would need to grab the recordset from SQL server, and for each column generate the appropriate SELECT statement to return the values to either populate an in-memory array or post the results to a table from which it can read the final results. Now...given that scenario isn't it more efficient to let SQL server handle all of that processing given that it handles all of the processing on the server side instead of client side basically resulting in less round trips from the web server to the SQL server? I would appreciate feedback from you guys. The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From d.dick at uws.edu.au Mon Nov 8 22:52:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 9 Nov 2004 15:52:48 +1100 Subject: [AccessD] A2K: Currency as a percentage In-Reply-To: Message-ID: Hey Deano Thanks Gustav and Deano You guys are legends I have done it a million times - but it's one of those copy and paste deals for me I neven learn that stuff - toooooo sanguine :-)) See ya'll Many thanks again DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dean Ellis Sent: Tuesday, 2 November 2004 10:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Currency as a percentage Dazza, The formula is fairly simple. Just divide 5 (being the percentage) by 100 and multiply it by the dollar amount. This will give the percentage og the dollar amount in dollars. Putting it into context. Percent field = txtpercent Dollar field = txtdollar discount field = txtdiscount txtdiscount = txtdollar * (txtpercent/100) Cheers Dean -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, 2 November 2004 9:46 PM To: AccessD List Subject: [AccessD] A2K: Currency as a percentage Hello all Can never remember how to do percentages off the top of my head I have a a form that allows users to put in any Dollar amount for a discount I also want to put in another txtBox and allow users to type in say...5 and have the machine calculate discounts in Dollars from the "5" value Thus have access caculate (in this case) 5 percent of the whole and then put that currency amount (EG 5% of $100.00 = $5.00) of $5.00 in the discount field Make sense? 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 actebs at actebs.com.au Mon Nov 8 23:19:43 2004 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 9 Nov 2004 16:19:43 +1100 Subject: [AccessD] Word Docs Bookmark Check Message-ID: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> Hi Guys, I am doing a merge to word using bookmarks. There are numerous word docs associated with activities and the user sets this up via the app setup screen. What I need to check is whether the bookmark for that activity type exists within the user selected document. Can this be done? Basically the procedure is as follows: a) User nominates a document to an activity b) User processes a transaction which instigates the word merge process which saves the doc with merged data Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... I hope I explained it well enough... Regards Vlad From accessd at shaw.ca Mon Nov 8 23:35:21 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 08 Nov 2004 21:35:21 -0800 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <418FC86C.5000306@shaw.ca> Message-ID: Hi Marty: The code and explanation can now be found at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/ht ml/scripting06112002.asp Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Monday, November 08, 2004 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Modules and libraries in Office It gets even more complex from .dotnet framework calling Com via PIA with Word 2003 and Excel.2003 You might only get away with this, using Application Objects, available in most MS object models. For example this code should be callable from any VBA editor Word, Excel, Access or PowerPoint Instead of InternetExplorer.application below you could use Word.Application etc Try this code for a chuckle useful if you have to display large amount of scrollable text in Access. This will need WMI installed on the machine, either WinXP or win2000 for the WMI portion of example to run. Win 98 can install WMI 1.5 but may not work Sub testIE() '------------------ ' qfcheck.vbs ver 1.0 3-Dec-2003 ' Check Automatic Update Installation History for Hotfixes '------------------ 'http://www.microsoft.com/technet/treeview/default.asp? url=/technet/scriptcenter/logs/scrlog08.asp Dim objExplorer As Object Dim objDocument As Object Dim strComputer As String Dim objWMIService As Object Dim colLoggedEvents As Object Dim objEvent As Object Dim dtmDate As Variant Dim strReturn As String Set objExplorer = CreateObject("InternetExplorer.Application") objExplorer.Navigate "about:blank" 'need this to open IE correctly or use url objExplorer.Toolbar = 0 'set to 1 to turn on IE toolbar objExplorer.StatusBar = 0 'set to 1 to turn on objExplorer.Width = 800 objExplorer.Height = 570 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Visible = 1 Do While (objExplorer.Busy) Loop Set objDocument = objExplorer.Document objDocument.Open objDocument.Writeln "Automatic Updates Installation History" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") 'IE Event code=19 WinXP=4377 Set colLoggedEvents = objWMIService.ExecQuery _ ("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'System' AND " _ & "EventCode = '19' OR EventCode = '4377'") Dim i As Long For Each objEvent In colLoggedEvents dtmDate = objEvent.TimeWritten strReturn = WMIDateStringTodate(dtmDate) objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" objDocument.Writeln "" i = i + 1 Next Debug.Print "no of events=" & i objDocument.Writeln "
Computer NameInstalled Update(s)Date and Time Installed
" & objEvent.ComputerName & "" & objEvent.Message & "" & strReturn & "
" objDocument.Writeln "" 'objDocument.Write() objDocument.Close MsgBox "finished" Set objExplorer = Nothing Set objDocument = Nothing Set objWMIService = Nothing Set colLoggedEvents = Nothing Set objEvent = Nothing End Sub Function WMIDateStringTodate(dtmDate) 'sorts out odd date structure WMIDateStringTodate = CDate(Mid(dtmDate, 5, 2) & "/" & _ Mid(dtmDate, 7, 2) & "/" & Left(dtmDate, 4) _ & " " & Mid(dtmDate, 9, 2) & ":" & _ Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _ 13, 2)) End Function John W. Colby wrote: >I am proposing a book to a publisher I just finished writing for, which will >be about reusable code for Microsoft Access specifically, modules, classes, >libraries and frameworks. > >I was hoping to find a way to make the code accessible to different >platforms should someone be more comfortable working in Word or Excel. >While a com object would certainly accomplish this, it involves tools (and >expertise) outside of the office suite. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys >Sent: Sunday, November 07, 2004 11:09 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Modules and libraries in Office > > >Maybe I'm misunderstanding, but ... > >(From Q230225) >COM add-ins are a new feature in Microsoft Office 2000 >and are supported by all Office programs, including Outlook. > >Key benefits of COM add-ins include: > >COM add-ins run in-process with the host program, so custom code generally >runs faster than code implemented in Visual Basic for Applications. > >The basic COM add-in architecture is consistent across all Office programs, >whereas in previous versions of Office, each program had its own add-in >architecture. > >You can create one COM add-in to use with more than one Office program. > >Example: > >http://support.microsoft.com/kb/238228 > >---- > >Michael R. Mattys >Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com > > > >----- Original Message ----- >From: "John W. Colby" >To: "'Access Developers discussion and problem solving'" > >Sent: Sunday, November 07, 2004 10:46 PM >Subject: RE: [AccessD] Modules and libraries in Office > > > > >>No, I'm talking about an application framework where the code is >>available to any Office application. >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R >> >> >Mattys > > >>Sent: Sunday, November 07, 2004 10:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Modules and libraries in Office >> >> >>John, >> >>Are you talking about the designers? >> >>I thought you could have a common standard or class module within the >>dll, and just pass in the Application object as Object. Then just >>Select Case >> >> >to > > >>perform the appropriate action. I'll look again, but I'm pretty sure >> >> >that's > > >>it. >> >>---- >> >>Michael R. Mattys >>Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com >> >> >> >>----- Original Message ----- >>From: "John W. Colby" >>To: "'Access Developers discussion and problem solving'" >> >>Sent: Sunday, November 07, 2004 8:36 PM >>Subject: RE: [AccessD] Modules and libraries in Office >> >> >> >> >>>Holy cow, is that a mish mash or what? The point of my questions >>>was to >>> >>> >>try >> >> >>>to find a common ground where code could be stored and run from all >>>of the various office applications. Not to be it would seem. It >>>does seem >>> >>> >>bizarre >> >> >>>that if I had some function that should be able to run in any of the >>>apps >>> >>> >>I >> >> >>>have to save the same thing in 5 different places so that Access, >>>Excel, Word, Powerpoint and Outlook could use it. >>> >>>John W. Colby >>>www.ColbyConsulting.com >>> >>>Contribute your unused CPU cycles to a good cause: >>>http://folding.stanford.edu/ >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: Sunday, November 07, 2004 2:03 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] Modules and libraries in Office >>> >>> >>>In Excel you can store functions and modules as Public in .xla >>>files. Old Excel pre 97 didn't store the code in xla it looked like >>>an mde file. Matter of fact you can call these .xla files from >>>Access. I have called functions from the Excel Statistical and >>>Financial Analysis Packs. >>> >>>In Outlook 2000 and any code that you create in the Outlook VBA >>>environment is stored in a file named VBAProject.otm. Even though >>>you can copy the VBAProject.otm file, that's not a good way to >>>distribute Outlook macros company-wide. The recommended method is to >>>create an Outlook or Word COM add-in. Talk to Shamil he has been >>>upgrading com addins to dotnet. http://www.outlookcode.com/d/vb.htm >>>http://www.outlookcode.com/d/comaddins.htm >>> >>>Word uses templates either user or workgroup (to be shared) in a >>>specific folder A template contain macros or other customizations >>>such as toolbars, it works better from some locations than others. >>>Again these com addin's can be used in place of macro's. see >>>http://word.mvps.org/FAQs/index.htm >>> >>>Just for future reference this method is also partially available >>>under word and excel >>> >>>Under the Tools/References menu in the VBE, you need to check the >>> >>> >>Microsoft >> >> >>>Visual Basic for Applications Extensibility 5.3 object library. >>>Microsoft Visual Basic for Applications Extensibility 5.3 C:\Program >>>Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB >>> >>> >>>The following code exports the contents of the Code Module to a file >>> >>> >>called >> >> >>>test.bas. This can be run from Word or Excel >>> >>>Application.VBE.ActiveVBProject.VBComponents("Module1").Export("test >>>.b >>>as") >>>I think you can also import code this way but never tried it or got it >>>to work or something. >>> >>>John W. Colby wrote: >>> >>> >>> >>>>In Access we use MDA/Es to store libraries of reusable code. Is >>>>there an equivalent for Word / Excel / Outlook etc (the rest of >>>>Office)? Do these other platforms have references like we do in >>>>Access? If so, can you reference an MDA/E to use code in it? >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>>Contribute your unused CPU cycles to a good cause: >>>>http://folding.stanford.edu/ >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>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 >> >> >> > > > -- 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 Erwin.Craps at ithelps.be Tue Nov 9 02:23:31 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 09:23:31 +0100 Subject: [AccessD] OT: Powerpoint Autoexec? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B54FE@stekelbes.ithelps.local> Hehe, long search. Conclusion, there no such thing as a autoexec in a Powerpoint presentation. A workaround is to create a add-in which can contain a Autorun function... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 09, 2004 5:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Powerpoint Autoexec? Powerpoint mvps http://www.mvps.org/links.html#PowerPoint Here is how to start from Access http://www.mvps.org/skp/vb/vbppt001.htm or look through here http://www.mvps.org/links.html#PowerPoint Erwin Craps - IT Helps wrote: >How can I automaticaly run a VBA sub routine in Powerpoint when the >presentation is loaded??? >Like the auotexec macro in Access. > >thx > > > >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 > > > > -- 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 pedro at plex.nl Tue Nov 9 10:03:50 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 09 Nov 2004 10:03:50 (MET) Subject: [AccessD] difficult query?? Message-ID: <200411090903.iA993owv021305@mailhostC.plex.net> Hello Eric, it doesn't matter how this is done, as a query expression or in code. Only i don't have an idea how to do this. Pedro Janssen In antwoord op: > From: "StaRKeY" > To: "'Access Developers discussion and problem solving'" > Date: Mon, 8 Nov 2004 23:13:22 +0100 > Subject: RE: [AccessD] difficult query?? > > > Hi Pedro, > > Must this be done in SQL/query or are you allowed to use a loop? > If you can use a loop I'd use the number field in a nested loop (eg. 1 to > nr.) to add all records into a new table having the numberfield filled with > 'X. > > > Regards, > Eric Starkenburg > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen > Verzonden: maandag 8 november 2004 22:48 > Aan: AccessD at databaseadvisors.com > Onderwerp: [AccessD] difficult query?? > > Hello Group, > > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount > of records of the value of field Number in a new table. And the value of > field [Number] must change into "X". All other fields must also be present. > > for example > > i have > tblA > > ID fieldA Number etc etc etc > 1 A 3 > > > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > > Can this been done? > > Thanks > > Pedro Janssen > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet besmet. > > > Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 > Getest op: 8-11-2004 23:13:21 > avast! auteursrecht (c) 2000-2004 ALWIL Software. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Tue Nov 9 10:04:04 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 09 Nov 2004 10:04:04 (MET) Subject: [AccessD] difficult query?? Message-ID: <200411090904.iA9944lu021323@mailhostC.plex.net> Hello Eric, it doesn't matter how this is done, as a query expression or in code. Only i don't have an idea how to do this. Pedro Janssen In antwoord op: > From: "StaRKeY" > To: "'Access Developers discussion and problem solving'" > Date: Mon, 8 Nov 2004 23:13:22 +0100 > Subject: RE: [AccessD] difficult query?? > > > Hi Pedro, > > Must this be done in SQL/query or are you allowed to use a loop? > If you can use a loop I'd use the number field in a nested loop (eg. 1 to > nr.) to add all records into a new table having the numberfield filled with > 'X. > > > Regards, > Eric Starkenburg > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Pedro Janssen > Verzonden: maandag 8 november 2004 22:48 > Aan: AccessD at databaseadvisors.com > Onderwerp: [AccessD] difficult query?? > > Hello Group, > > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount > of records of the value of field Number in a new table. And the value of > field [Number] must change into "X". All other fields must also be present. > > for example > > i have > tblA > > ID fieldA Number etc etc etc > 1 A 3 > > > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > > Can this been done? > > Thanks > > Pedro Janssen > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet besmet. > > > Virus Gegevensbestand (VPS): 0445-2, 04-11-2004 > Getest op: 8-11-2004 23:13:21 > avast! auteursrecht (c) 2000-2004 ALWIL Software. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From gustav at cactus.dk Tue Nov 9 05:02:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:02:45 +0100 Subject: [AccessD] A2K, Export to Excel In-Reply-To: References: Message-ID: <6811558249.20041109120245@cactus.dk> Hi Francisco Try setting the format property of the field in the query to "Number" and two decimals. If this doesn't help, you may need to fall back to use Format() in an expression. /gustav > A friend has a query, and is exporting the results to an excel file, > for some reason the numeric (dollar) values are converted to string in > excel (the single ' quote problem) it's easy enough to convert excel > to see it as a numeric but why? > thanks, > -- > -Francisco From gustav at cactus.dk Tue Nov 9 05:06:59 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:06:59 +0100 Subject: [AccessD] Checking for "holes" in a sequence using SQL In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B059F8E@mercury.tnco-inc.com> Message-ID: <14411812815.20041109120659@cactus.dk> Hi Joe "Bad" may tend to be too strong. At least no one would call you a "bad boy" for this merit only. How about unnecessary? /gustav > Is it bad for to store the actual data, when using text, if they all share > the same prefix? From gustav at cactus.dk Tue Nov 9 05:56:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Nov 2004 12:56:57 +0100 Subject: [AccessD] difficult query?? In-Reply-To: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> References: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> Message-ID: <17114810796.20041109125657@cactus.dk> Hi Pedro > i have a table [tblA] with 20 fields. > One of these fields [Number] has a value from 1 to 25. > I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other > fields must also be present. > for example > i have > tblA > ID fieldA Number etc etc etc > 1 A 3 > i need > ID fieldA Number etc etc etc > 1 A X > 1 A X > 1 A X > Can this been done? Yes. Create a table, tbzMultiply, with one integer field, Factor, and create records from 1 to 25 or more, say, 100. Then use: SELECT tblA.ID, tblA.FieldA, ... tblA.FieldZ, "X" AS [Number] FROM tblA, tbzMultiply WHERE (tbzMultiply.Factor Between 1 And tblA.[Number]) ORDER BY tblA.ID; Note the missing join. This is a Cartesian (multiplying) query. /gustav From Susan.Klos at fldoe.org Tue Nov 9 07:12:41 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Tue, 9 Nov 2004 08:12:41 -0500 Subject: [AccessD] Missing Months in a crosstab query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73940@doesefpeml02.eus.fldoe.int> I may have asked this before Jim and I am sorry for the repetition. I have been gone for a week or so and am just now trying to sort through my emails. I have printed your reply now and will use it right away to see how it works. Thanks for your reply and my apologies to all for the duplicate question. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -----Original Message----- Date: Mon, 8 Nov 2004 13:09:23 -0600 From: "Hale, Jim" Subject: RE: [AccessD] Missing months in a crosstab query To: "'Access Developers discussion and problem solving'" Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203 at corp-es01.fleetpride.com> Content-Type: text/plain; charset="iso-8859-1" Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale From carbonnb at gmail.com Tue Nov 9 08:45:11 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 9 Nov 2004 09:45:11 -0500 Subject: [AccessD] Word Docs Bookmark Check In-Reply-To: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> References: <2025BB6F17FCB54791F23CD505583328041BD1@starfleet.unknown.local> Message-ID: On Tue, 9 Nov 2004 16:19:43 +1100, ACTEBS wrote: > Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... Vlad, I'm not sure how you are correlating your bookmarks with what the user chooses, but you can use a line like: doc.Bookmarks.Exists("BookmarkName") to see if the bookmark exists in the document that you are working with, assuming of course, that the doc variable references the Word document that you are working with. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From actebs at actebs.com.au Tue Nov 9 09:14:13 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 10 Nov 2004 02:14:13 +1100 Subject: [AccessD] Word Docs Bookmark Check Message-ID: <2025BB6F17FCB54791F23CD505583328041BD2@starfleet.unknown.local> Brian, I wish I had known about the Exists property. I figured out a solution where I created a table that housed the names of the bookmarks I was looking for, then I pass the recordset to the function and if it errors out with 5941 I trap it and know the BM is not there. It's quick and dirty, but does the job. The result is the following: (Hopefully it will help someone else) Function FindBMark(strWordDocPath As String, mRst As DAO.Recordset) As Boolean On Error GoTo Err_FindBMark Dim WordObj As Word.Application FindBMark = True gBMark = True Set WordObj = CreateObject("Word.Application") WordObj.Documents.Open strWordDocPath WordObj.Visible = False ' Find the bookmark mRst.MoveFirst Do Until mRst.EOF With mRst WordObj.ActiveDocument.Bookmarks(!FieldToCheck).Select End With mRst.MoveNext Loop ' Close the document. WordObj.ActiveDocument.Close ' Quit Microsoft Word and clean up WordObj.Quit Set WordObj = Nothing Exit_FindBMark: Exit Function Err_FindBMark: Select Case Err Case 5941 FindBMark = False gBMark = False WordObj.ActiveDocument.Close WordObj.Quit Set WordObj = Nothing Case Else MsgBox Err.Description Resume Exit_FindBMark End Select End Function Thanks Brian, I'll use your suggestion somewhere else in the app, you've saved me a bit of coding. Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, 10 November 2004 1:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Word Docs Bookmark Check On Tue, 9 Nov 2004 16:19:43 +1100, ACTEBS wrote: > Before I merge I need to check whether all the bookmarks in the doc exist, otherwise the wrong document has been selected for that activity... Vlad, I'm not sure how you are correlating your bookmarks with what the user chooses, but you can use a line like: doc.Bookmarks.Exists("BookmarkName") to see if the bookmark exists in the document that you are working with, assuming of course, that the doc variable references the Word document that you are working with. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Nov 9 09:38:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 10:38:40 -0500 Subject: [AccessD] event identification Message-ID: <20041109153909.LYYS2451.imf21aec.mail.bellsouth.net@SUSANONE> Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. From JColby at dispec.com Tue Nov 9 09:52:08 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 10:52:08 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF961@DISABILITYINS01> Not as far as I know. That would be handy though. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 10:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] event identification Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Nov 9 09:57:04 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Nov 2004 09:57:04 -0600 Subject: [AccessD] Remote Queries In-Reply-To: <22823002.1099948104142.JavaMail.root@sniper12.usinternet.com> Message-ID: <000001c4c674$c255ded0$de1811d8@danwaters> For more information on Remote Queries, you can go to: http://www.vb123.com/Toolshed/02_accvb/remotequeries.htm What I've done is to create a function that defines the path to the BE db. Each remote query uses that function. So if the path to the BE changes, I only need to change it in one place. For multiple BE's you could set up multiple functions. Jim - The ADO connection appears, for my purposes, to be equivalent. However this is an example I will keep! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Monday, November 08, 2004 2:52 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remote Queries Just a note: There might be a better way to handle access to the remote database. It will not solve the problem if the database location is changed but it will handle the security issue. See: http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDB ProviderForMicrosoftJet for ADO connection string Set variables like: Dim gstrConnection As String Dim gconMYRemoteDB As ADODB.Command Dim strSQL as String Public rsMyRecordset As ADODB.Recordset gstrConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Databases\Process.mdb;" & _ "Jet OLEDB:System Database=MySystem.mdw", _ "myUsername", "myPassword" Set gconMYRemoteDB = New ADODB.Command With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "Select * from MyTable Where MyFirstField = 1" .CommandType = adCmdText End With ...or... if you are using a query from the remote DB that has a parameter you would use something like this... With gconMYRemoteDB .ActiveConnection = gstrConnection .CommandText = "qryMyQueryName" .CommandType = adCmdStoredProc .Parameters.Append .CreateParameter("NameofParameterToFill", adChar, adParamInput, 10, strParameterValueToPass) End With 'To fill a recordset Set rsMyRecordset = New ADODB.Recordset With rsMyRecordset .CursorLocation = adUseClient ' Note; dynamic and record locking. Mandatory for multi-user ' environments as MDBs are not as sophisticated as SQL servers ' and that implies code to manage record data changes or conflicts. .Open gconMYRemoteDB, , adOpenDynamic, adLockOptimistic If .BOF = False Or .EOF = False Then .MoveLast End With ...or to simply execute a command... strSQL = "INSERT INTO MyTable ( MyField1, MyField2 ) " & _ "VALUES(" & Str(Variable1) & ", '" & Variable2 & "')" gconMYRemoteDB.Execute strSQL Set gconMYRemoteDB = Nothing This way is ideal as you can have as many DBs open as you wish (within system limits of course), all at once. This also manages the issues of security. Hopefully that DBs do not wander around to frequently so that their locations have to be continually managed. (Note that previous was done from memory with limited reliability.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, November 08, 2004 7:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remote Queries There are drawbacks. I don't believe you can specificy a different .mdw or username/password with this type of statement. Also, what if the Backend is moved? Instead of having to relink the tables, you'll have to change the SQL in everything that uses this path. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, November 07, 2004 7:41 AM To: Database Advisors Subject: [AccessD] Remote Queries Has anyone had experience with what is called a Remote Query? This is where you write the complete path to a table in the Select statement for a recordset or a form or report recordsource. An example: "SELECT * FROM tblProcessMain" _ " IN 'C:\Databases\Process.mdb'" _ " WHERE ProcessStage <> 'Closed'" Using a remote query means that a Front End doesn't need to link to a Back End. It also allows a Front End to be distributed without table links and queries - thus hiding the location of the Back End. This is new to me! What might be the pros/cons/problems with using Remote Queries? TIA, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 10:00:06 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Nov 2004 10:00:06 -0600 Subject: [AccessD] event identification In-Reply-To: <26791971.1100015020089.JavaMail.root@sniper12.usinternet.com> Message-ID: <000101c4c675$2ebeb560$de1811d8@danwaters> I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. Rats! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, November 09, 2004 9:39 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] event identification Is there any way to determine "what" event is triggered when without adding a lot of very specific Debug.Print statements to each possible event procedure? I'm wondering if there isn't some generic property that will define the calling event procedure? Is there such a critter? For instance, if a command button's Click event is triggered, is there some generic way I can print "Click" to the Immediate window? I know I can do this easily enough by adding a Debug.Print "click" statement myself, but is there a GENERIC statement that I could add to any event that would define the calling event? I hope I'm making myself clear. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Tue Nov 9 10:28:57 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 9 Nov 2004 10:28:57 -0600 Subject: [AccessD] Missing Months in a crosstab query Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233720B@corp-es01.fleetpride.com> I didn't intend for my reply to sound harsh, sorry. I was only curious whether my solution had worked. I hope so. Regards, Jim Hale -----Original Message----- From: Klos, Susan [mailto:Susan.Klos at fldoe.org] Sent: Tuesday, November 09, 2004 7:13 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Missing Months in a crosstab query I may have asked this before Jim and I am sorry for the repetition. I have been gone for a week or so and am just now trying to sort through my emails. I have printed your reply now and will use it right away to see how it works. Thanks for your reply and my apologies to all for the duplicate question. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -----Original Message----- Date: Mon, 8 Nov 2004 13:09:23 -0600 From: "Hale, Jim" Subject: RE: [AccessD] Missing months in a crosstab query To: "'Access Developers discussion and problem solving'" Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337203 at corp-es01.fleetpride.com> Content-Type: text/plain; charset="iso-8859-1" Didn't you ask about this a couiple of weeks ago? Did you try this? "Check out p 157 of Getz's ADH. He suggests using the IN clause. EX: PIVOT column-headings-field [IN(value1[,value2[,...etc]])]" Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From chris at piasd.org Tue Nov 9 10:38:58 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 08:38:58 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856CD@server.domain.local> I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK From Jdemarco at hudsonhealthplan.org Tue Nov 9 10:45:47 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 9 Nov 2004 11:45:47 -0500 Subject: [AccessD] Unused numbers? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486A22@TTNEXCHCL2.hshhp.com> I think Gustav just posted something last week that should meet your need. Search the archive (or your mail client if you keep these posts around for a while) for "Find holes". HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ 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 JColby at dispec.com Tue Nov 9 11:01:59 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:01:59 -0500 Subject: [AccessD] Unused numbers? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF962@DISABILITYINS01> >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Nov 9 11:10:09 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 12:10:09 -0500 Subject: [AccessD] event identification In-Reply-To: <000101c4c675$2ebeb560$de1811d8@danwaters> Message-ID: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> That's what I thought. Thanks guys! Susan H. I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. From chris at piasd.org Tue Nov 9 11:18:57 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:18:57 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D2@server.domain.local> I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 11:21:11 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 9 Nov 2004 12:21:11 -0500 Subject: [AccessD] event identification In-Reply-To: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. From chris at piasd.org Tue Nov 9 11:27:19 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:27:19 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D3@server.domain.local> Yes that seems to have fixed the problem -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 9:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 11:34:15 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:34:15 -0500 Subject: [AccessD] Unused numbers? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF963@DISABILITYINS01> That is exactly the way to do it. Max (PK) + 1 inserted back in to the PK field. After that the autonumber should pick up at the next value which will no longer collide. John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 11:46:02 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 12:46:02 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF964@DISABILITYINS01> Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 9 11:53:17 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 09:53:17 -0800 Subject: [AccessD] event identification Message-ID: Have you looked in Help? The sequence of events for the various objects are there, although you have to hunt for them. From the UI bring up Access help and type "Order of events for database objects" in the answer wizard. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 9 11:55:41 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 09:55:41 -0800 Subject: [AccessD] event identification Message-ID: Susan, There's a workaround of sorts. You can declare a constant in each routine with the name of the procedure in it and then include that in the error description. Um ... It works best if you insert the constant when you build each of the routines. Going back later can be a lot of work. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 9:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification That's what I thought. Thanks guys! Susan H. I asked this question once because I wanted to be able to record the procedure name (automatically) when logging errors. Mike Gunderloy responded and said that the MS Access developers tried but were unable to develop a reliable function to do that. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at piasd.org Tue Nov 9 11:57:27 2004 From: chris at piasd.org (Chris Kettenbach) Date: Tue, 9 Nov 2004 09:57:27 -0800 Subject: [AccessD] Unused numbers? Message-ID: <2F7BA03C93D17D48B13C42228C8FDAF27856D5@server.domain.local> excellent. works as anticipated. thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? That is exactly the way to do it. Max (PK) + 1 inserted back in to the PK field. After that the autonumber should pick up at the next value which will no longer collide. John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Unused numbers? I think something like this has happened. Is there anyway to start it over from the largest value. When users were trying to add new records, it was trying to create duplicate values. I had to go in and use an SQL INSERT. I first did a SELECT Max(NumID) then I did an INSERT with 1+that value. Should the counter begin counting from there now? I hope that corrected the problem. Only way I guess is to try adding a new record. Thanks all. CK -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 9:02 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Unused numbers? >Maybe it's more trouble than it's worth. And a bad idea. Do you use an autonumber? If so there is no reusing the old numbers. If you try you will reset the counter and the next time the autonumber is used it will collide with values already in the table. Further they are a long integer capable of handling +/- 4 billion values, so why worry about it? John W. Colby The DIS Database Guy -----Original Message----- From: Chris Kettenbach [mailto:chris at piasd.org] Sent: Tuesday, November 09, 2004 11:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmoss111 at bellsouth.net Tue Nov 9 12:01:34 2004 From: jmoss111 at bellsouth.net (jmoss111 at bellsouth.net) Date: Tue, 9 Nov 2004 13:01:34 -0500 Subject: [AccessD] event identification Message-ID: <20041109180134.ZKOA2398.imf18aec.mail.bellsouth.net@mail.bellsouth.net> You can also find an event logger in ADH, in chapter 2 in the 2000 and 2002 versions. > > From: "Colby, John" > Date: 2004/11/09 Tue PM 12:46:02 EST > To: "'Access Developers discussion and problem solving'" > > Subject: RE: [AccessD] event identification > > Susan, > > I have never found a single place to go, particularly for sequence. The > order of events can get really strange, particularly if you throw in form / > subform loads, subform enter / exit etc. In the Access help somewhere there > is a generic order of events for the form events, and the control events, > but it definitely cannot tell the whole story. > > As far as what's going on behind the scenes... you don't even want to know. > Now you get into things like mouse clicks where Windows hands the mouse > event to Access which translates it into a form / control event. Normally > Windows directly hands a mouse event to the window the mouse is inside of - > Window meaning a window object, anything square. That object has to decide > how to handle the click. Objects inside of Access are not true windows to > windows, thus the mouse event has to be translated by Access using the > position in the Access window etc. > > Similarly key down/up/press... is it handled by the form or by the control? > What if the control should but doesn't? (it ripples up to the form AFAIK). > > Events are a rather deep subject. > > I think I have a widget on my site that uses the control classes and form > class to debug.print all the events that fire, in the order fired as you do > anything in the form. If you want to use it I will need to go look around > and see what it is called. It was part of the lecture series I think. > > John W. Colby > The DIS Database Guy > > > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Tuesday, November 09, 2004 12:21 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] event identification > > > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > That's what I thought. Thanks guys! > > Susan H. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 13:01:48 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 9 Nov 2004 14:01:48 -0500 Subject: [AccessD] event identification In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF964@DISABILITYINS01> Message-ID: John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 9 13:17:27 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 9 Nov 2004 14:17:27 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF965@DISABILITYINS01> Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 13:53:06 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 9 Nov 2004 13:53:06 -0600 Subject: [AccessD] event identification Message-ID: <100F91B31300334B89EC531C9DCB08653F5EA1@tccexch01.tappeconstruction.net> Access controls reuse a single floating window that can be accessed by handle when the control receives the focus, using the GetFocus() API call. Access forms are true windows (OForm window class), and have a built-in hWnd property that is available at all times. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Tue Nov 9 14:30:07 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 12:30:07 -0800 Subject: [AccessD] event identification Message-ID: You can definitely get the hWnd of a control that has the focus, John. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 09, 2004 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 9 15:12:58 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 9 Nov 2004 22:12:58 +0100 Subject: [AccessD] A2K, Export to Excel Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> Aha, yes, know that prob. Export without formatting and openening excel options. Just straight in to a file... Problem solved. Changing the cell format does not solve this issue. For me this is a bug that is present since A2K Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 09, 2004 12:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K, Export to Excel Hi Francisco Try setting the format property of the field in the query to "Number" and two decimals. If this doesn't help, you may need to fall back to use Format() in an expression. /gustav > A friend has a query, and is exporting the results to an excel file, > for some reason the numeric (dollar) values are converted to string in > excel (the single ' quote problem) it's easy enough to convert excel > to see it as a numeric but why? > thanks, > -- > -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Nov 9 15:24:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 Nov 2004 15:24:20 -0600 Subject: [AccessD] event identification Message-ID: <123701F54509D9119A4F00D0B747349016D075@main2.marlow.com> Not really, that is the hWnd of a generic window, which moves to whatever control has the focus. It's not unique to the control. That is in Access though. VB form controls have their own hWnd. Subforms, however, do have their own hWnd, so they are the exception to the rule. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, November 09, 2004 2:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification You can definitely get the hWnd of a control that has the focus, John. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 09, 2004 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Everything I've read says a control does NOT have a hwind. Forms might. Not exactly my area of expertise however. John W. Colby The DIS Database Guy -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Tuesday, November 09, 2004 2:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification John, <> I don't think that's quite right. While Access objects are not true Windows objects, they do get a hwnd when they are active. I don't think the mouse clicks are translated based on position. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 09, 2004 12:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification Susan, I have never found a single place to go, particularly for sequence. The order of events can get really strange, particularly if you throw in form / subform loads, subform enter / exit etc. In the Access help somewhere there is a generic order of events for the form events, and the control events, but it definitely cannot tell the whole story. As far as what's going on behind the scenes... you don't even want to know. Now you get into things like mouse clicks where Windows hands the mouse event to Access which translates it into a form / control event. Normally Windows directly hands a mouse event to the window the mouse is inside of - Window meaning a window object, anything square. That object has to decide how to handle the click. Objects inside of Access are not true windows to windows, thus the mouse event has to be translated by Access using the position in the Access window etc. Similarly key down/up/press... is it handled by the form or by the control? What if the control should but doesn't? (it ripples up to the form AFAIK). Events are a rather deep subject. I think I have a widget on my site that uses the control classes and form class to debug.print all the events that fire, in the order fired as you do anything in the form. If you want to use it I will need to go look around and see what it is called. It was part of the lecture series I think. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, November 09, 2004 12:21 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification BTW, does anyone have a good online resource for an explanation of the Access event model -- sequence and what's going on behind the scenes? I just need to check things before I go on record and in my usual search-challenged way, I can't find anything worth squat. :( Susan H. That's what I thought. Thanks guys! Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 9 14:50:07 2004 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 9 Nov 2004 21:50:07 +0100 Subject: [AccessD] difficult query?? References: <004a01c4c5dc$9bef3a40$f8c581d5@pedro> <17114810796.20041109125657@cactus.dk> Message-ID: <006f01c4c6a7$04ba1ac0$f8c581d5@pedro> Thanks Gustav, it works perfect. Pedro Janssen ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 09, 2004 12:56 PM Subject: Re: [AccessD] difficult query?? > Hi Pedro > > > i have a table [tblA] with 20 fields. > > One of these fields [Number] has a value from 1 to 25. > > I would like each record with a value in field [number] giving the ammount of records of the value of field Number in a new table. And the value of field [Number] must change into "X". All other > > fields must also be present. > > > for example > > > i have > > tblA > > > ID fieldA Number etc etc etc > > 1 A 3 > > > > i need > > ID fieldA Number etc etc etc > > 1 A X > > 1 A X > > 1 A X > > > Can this been done? > > Yes. Create a table, tbzMultiply, with one integer field, Factor, and > create records from 1 to 25 or more, say, 100. > > Then use: > > SELECT > tblA.ID, > tblA.FieldA, > ... > tblA.FieldZ, > "X" AS [Number] > FROM > tblA, > tbzMultiply > WHERE > (tbzMultiply.Factor Between 1 And tblA.[Number]) > ORDER BY > tblA.ID; > > Note the missing join. This is a Cartesian (multiplying) query. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From fhtapia at gmail.com Tue Nov 9 18:10:12 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 9 Nov 2004 16:10:12 -0800 Subject: [AccessD] A2K, Export to Excel In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> References: <46B976F2B698FF46A4FE7636509B22DF1B5501@stekelbes.ithelps.local> Message-ID: arg. well I've moved on since that but I'm still curious why this occurs.. it is very frustrating.. :| On Tue, 9 Nov 2004 22:12:58 +0100, Erwin Craps - IT Helps wrote: > Aha, yes, know that prob. > > Export without formatting and openening excel options. Just straight in > to a file... > Problem solved. > Changing the cell format does not solve this issue. > For me this is a bug that is present since A2K > > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Tuesday, November 09, 2004 12:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K, Export to Excel > > Hi Francisco > > Try setting the format property of the field in the query to "Number" > and two decimals. If this doesn't help, you may need to fall back to use > Format() in an expression. > > /gustav > > > A friend has a query, and is exporting the results to an excel file, > > for some reason the numeric (dollar) values are converted to string in > > > excel (the single ' quote problem) it's easy enough to convert excel > > to see it as a numeric but why? > > > thanks, > > -- > > -Francisco > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From fhtapia at gmail.com Tue Nov 9 18:14:27 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 9 Nov 2004 16:14:27 -0800 Subject: [AccessD] event identification In-Reply-To: <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> References: <20041109171009.MXNL8988.imf16aec.mail.bellsouth.net@SUSANONE> <20041109172117.OYFV2451.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From cfoust at infostatsystems.com Tue Nov 9 18:45:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Nov 2004 16:45:45 -0800 Subject: [AccessD] event identification Message-ID: I use 4.0 in .Net and love it! It's a bit different from the 3.0 version, which I still use in Access, but it's well worth the minimal cost, and the author just patched it for a problem I encountered and reported with find and replace. Charlotte Foust -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 4:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just need to check things before I go on record and in my usual > search-challenged way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Tue Nov 9 19:54:49 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 10 Nov 2004 12:54:49 +1100 Subject: [AccessD] Adding history cycles of data Message-ID: <000e01c4c6c8$439fc700$6401a8c0@user> I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath From accessd at shaw.ca Tue Nov 9 21:06:41 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 09 Nov 2004 19:06:41 -0800 Subject: [AccessD] Adding history cycles of data In-Reply-To: <000e01c4c6c8$439fc700$6401a8c0@user> Message-ID: Hi Kath: Just a comment; 6 new tables a quarter? Why? I can see adding some historical summary data to a special set of tables, to maybe aid in fast processing for a complex set of calculations but continually generating table after table seems to be a waste. That is where quering are used. A number of years ago I took over a site with about ninety forms and I can not remember how many queries, macros but the list was pretty staggering. The system is now running on less than twenty non-duplicated forms and the only thing that increased has been the data and number of reports. My recommendation is try to keep the application as lean as possible. Think of the poor programmer that has to manage it all...and it may be you! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Tuesday, November 09, 2004 5:55 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Adding history cycles of data I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Tue Nov 9 21:26:10 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 10 Nov 2004 14:26:10 +1100 Subject: [AccessD] Adding history cycles of data References: Message-ID: <001c01c4c6d5$06745f00$6401a8c0@user> Jim - the business is in stockbroking. The main purpose of the system currrently is to provide valuations of portfolios to approx. 300 clients who can each hold up to 19 accounts. At the moment the system is fairly lean on data storage because it uses a daily refresh principal, ie. each day all stocks, holdings and prices are discarded, and live market data is read in to the system. Queries and reports read the new data to provide up to date valuations. This process will continue to take place, but every 3 months the client wants to 'freeze' that position and keep it as a position for that quarter. Every quarter a new position will be 'frozen' and a history will be built. My client requires the historical positions to be editable. The 6 tables will hold details of clients at that point in time, accounts held by them at that time, and all investments held at that time, as well as prices held for those stocks at that time. For this reason, a summary just won't be enough. I agree that the ongoing maintenance and speed / efficiency has to be uppermost on the design decision. I would like to keep as few tables as possible - but if I throw all historical data out to one set of 6 history tables is it the most efficient? Another option is to only hold a table of report cycle id's in the BE - with a link to an external mdb which holds all the actual data. I am still thinking it through and look forward to seeing what others think... Kath ----- Original Message ----- From: Jim Lawrence (AccessD) To: Access Developers discussion and problem solving Sent: Wednesday, November 10, 2004 2:06 PM Subject: RE: [AccessD] Adding history cycles of data Hi Kath: Just a comment; 6 new tables a quarter? Why? I can see adding some historical summary data to a special set of tables, to maybe aid in fast processing for a complex set of calculations but continually generating table after table seems to be a waste. That is where quering are used. A number of years ago I took over a site with about ninety forms and I can not remember how many queries, macros but the list was pretty staggering. The system is now running on less than twenty non-duplicated forms and the only thing that increased has been the data and number of reports. My recommendation is try to keep the application as lean as possible. Think of the poor programmer that has to manage it all...and it may be you! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Tuesday, November 09, 2004 5:55 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Adding history cycles of data I need to add a historic reporting cycle to an existing database. The BE currently has around 65 tables. The FE has around 150 queries, and approx the same no. of forms, with approx 40 reports. The decision has been made to store some historic data, so on a quarterly basis I need to create 6 new tables of data which will be held permanently in the BE, ie. 6 x 4 quarters = 24 new tables per year. This system also has a linked mdb called Update.mdb to allow me to rollout updates automatically, as well as a linked web mdb which holds data which gets uploaded to the website. As I work for myself, before I create this new logic to create 6 new tables per quarter, I wanted to run this by the list - is there any argument for storing these history tables outside the main BE? Is there any advantage to creating 6 large history tables with dates, rather than 6 per quarter? If you were needing to add a historic cycle to a system, would you use the approach I am suggesting? I have worked hard to keep this system running fast and the clients are happy with the speed - so I don't want to slow it down... (And does anyone have some code to create tables directly into the BE and link them straight back to the initiating FE?) TIA Kath -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Tue Nov 9 21:35:56 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 9 Nov 2004 20:35:56 -0700 Subject: [AccessD] Alternating background color in continuous forms? Message-ID: <157240-220041131033556327@christopherhawkins.com> Greetings, all! I want to do something kind of fun. I am trying to figure out how to do alternating background colors in a continuous form. I was looking at conditional formatting in Access 2002, but am not sure how to work out an expression that will do the trick. I am also looking a doing it programmatically, but I think I'd have to do some heavy subclassing, which isn't worth the work just for eye candy. Surely someone must have done this before. Can anyone either offer sugestons on how to figure it out, or post actual code? I'll be sure to give proper credit when it's time to submit the results to the UI Hall of Fame. ;) -Christopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From stuart at lexacorp.com.pg Tue Nov 9 22:09:12 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 10 Nov 2004 14:09:12 +1000 Subject: [AccessD] Alternating background color in continuous forms? In-Reply-To: <157240-220041131033556327@christopherhawkins.com> Message-ID: <41922108.8351.46C490D@lexacorp.com.pg> On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > > Surely someone must have done this before. Can anyone either offer > sugestons on how to figure it out, or post actual code? I'll be sure > to give proper credit when it's time to submit the results to the UI > Hall of Fame. ;) > You mean here :-) http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/color.htm -- Stuart From clh at christopherhawkins.com Tue Nov 9 22:41:06 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 9 Nov 2004 21:41:06 -0700 Subject: [AccessD] Alternating background color in continuous forms? Message-ID: <184670-22004113104416249@christopherhawkins.com> HAHAHAHAHAHAHAHA sheddup. :p ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Alternating background color in continuous forms? Date: Wed, 10 Nov 2004 14:09:12 +1000 >On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > >> >> Surely someone must have done this before. Can anyone either offer >> sugestons on how to figure it out, or post actual code? I'll be >sure >> to give proper credit when it's time to submit the results to the >UI >> Hall of Fame. ;) >> > >You mean here :-) > >http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/col >or.htm > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From dmcafee at pacbell.net Tue Nov 9 23:51:27 2004 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 9 Nov 2004 21:51:27 -0800 Subject: [AccessD] Alternating background color in continuous forms? In-Reply-To: <184670-22004113104416249@christopherhawkins.com> Message-ID: Access 2000 and later has Conditional formatting Access 97 and earlier will needed to use a textbox in the background. Check out Duane Hookem's BRdemo database: http://www.invisibleinc.com/download.cfm?filFilID=7 HTH David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, November 09, 2004 8:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Alternating background color in continuous forms? HAHAHAHAHAHAHAHA sheddup. :p ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Alternating background color in continuous forms? Date: Wed, 10 Nov 2004 14:09:12 +1000 >On 9 Nov 2004 at 20:35, Christopher Hawkins wrote: > >> >> Surely someone must have done this before. Can anyone either offer >> sugestons on how to figure it out, or post actual code? I'll be >sure >> to give proper credit when it's time to submit the results to the >UI >> Hall of Fame. ;) >> > >You mean here :-) > >http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/col >or.htm > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Wed Nov 10 03:19:38 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 10 Nov 2004 10:19:38 +0100 Subject: [AccessD] OT: Where is 1$? Message-ID: <005701c4c706$777983c0$0100a8c0@razvoj> Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? From viner at EUnet.yu Wed Nov 10 03:19:38 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 10 Nov 2004 10:19:38 +0100 Subject: [AccessD] OT: Where is 1$? Message-ID: <007201c4c706$a95ea5a0$0100a8c0@razvoj> Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? From serbach at new.rr.com Wed Nov 10 05:16:26 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 10 Nov 2004 05:16:26 -0600 Subject: [AccessD] A2K/AXP Repllcation problem In-Reply-To: <20041107045310.1540446425.serbach@new.rr.com> References: <20041105132148.1553325418.serbach@new.rr.com> <20041107045310.1540446425.serbach@new.rr.com> Message-ID: <20041110051626.1518568599.serbach@new.rr.com> Dear Group, My synchronization problem turned out to be simply a repair/compact problem. As soon as I repaired the databases on the laptops, I was able to synch them with the main database in my customer's home office. Steve Erbach Neenah, WI > ------------Original Message------------ > From: "Steven W. Erbach" > To: "Access Developers discussion and problem solving" > Date: Sun, Nov-7-2004 5:02 AM > Subject: Re: [AccessD] A2K/AXP Repllcation problem > > Well, I found something over on Experts Exchange that may relate to > this problem. It's a Microsoft KB article, Q301474. We'll see. > > Steve Erbach > Neenah, WI > From actebs at actebs.com.au Wed Nov 10 07:13:11 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 00:13:11 +1100 Subject: [AccessD] Treeview - Again : ) Message-ID: <2025BB6F17FCB54791F23CD505583328041BD3@starfleet.unknown.local> Guys, Arthur's treeview is great, lots of examples on how to use it. The thing I can't figure out is how to select an item within the treeview for the user. For example: The user wants to edit a record he selects the record he wants to edit and I populate the text fields etc for him, but I can't get the treeview to highlight the activity item it relates to. Basically, I want to expand the treeview and highlight the item in the treeview that corresponds to the selected record. Things I have tried is: a) Tvw.nodes.value = whatever b) set tvw.nodes = whatever c) tvw.nodes.selecteditem = whatever Is there another method? Thanks Vlad From kaupca at chevrontexaco.com Wed Nov 10 07:19:30 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Wed, 10 Nov 2004 07:19:30 -0600 Subject: [AccessD] OT: Where is 1$? Message-ID: <1375769556091B4DAABC159F944CA1BB07A2B2@bocnte2k4.hou150.chevrontexaco.net> The three cowboys were dunk by now and didn't care anyway. However Cowboy one got $3 back ($2 plus $1) and each of the other 2 got $1 back. $9 + $9 + $7 +$5 = #30.00. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Wednesday, November 10, 2004 3:20 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Where is 1$? Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Wed Nov 10 09:28:12 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 02:28:12 +1100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <2025BB6F17FCB54791F23CD505583328041BD4@starfleet.unknown.local> Guys, I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" The code is as follows: With m_objWord .ActiveDocument.SaveAs strWrdPath If gBoolPrintOrNot = True Then .ActiveDocument.PrintOut DoEvents End If .ActiveDocument.Close End With m_objWord.Quit Set m_objDoc = Nothing Set m_objWord = Nothing It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... Any guidance much appreciated... Vlad From DWUTKA at marlow.com Wed Nov 10 09:56:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 10 Nov 2004 09:56:33 -0600 Subject: [AccessD] OT: Where is 1$? Message-ID: <123701F54509D9119A4F00D0B747349016D076@main2.marlow.com> Actually, it's $25 for the whiskey (which is why they got five back). $9 for each cowboy, which means they paid $27, and the barman kept a $2 tip, so 27-2=25 Drew -----Original Message----- From: Ervin Brindza [mailto:viner at EUnet.yu] Sent: Wednesday, November 10, 2004 3:20 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Where is 1$? Sorry, I couldn't resist: Three cowboys order a bottle of whisky for 30$ in the saloon. The owner notice the omission and give an order to a barman to return them 5$. He pick 2$ in his pocket, and return 1$ to each cowboy. 3x9+2 = 29 but where is 1$? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Wed Nov 10 09:48:06 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 10 Nov 2004 10:48:06 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF969@DISABILITYINS01> I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ 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 Nov 10 09:12:17 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Nov 2004 16:12:17 +0100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <20041110161214.5FF5E256047@smtp.nildram.co.uk> Vlad I know the problem. What I did, rightly or wrongly, was omit the .Quit but still set the Word object to Nothing. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Group E-mail Subject: [AccessD] Wait For Word To Finish Printing Date: 10/11/04 15:58 > > Guys, > > I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > > The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > > It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > > I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > > Any guidance much appreciated... > > Vlad > > > -- > _______________________________________________ > 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 Mark.Mitsules at ngc.com Wed Nov 10 10:17:51 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 10 Nov 2004 11:17:51 -0500 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: My memory is a little fuzzy on this issue. Will this work? m_objWord.Options.PrintBackground = True Mark -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Wednesday, November 10, 2004 10:28 AM To: Access Group (E-mail) Subject: [AccessD] Wait For Word To Finish Printing Guys, I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" The code is as follows: With m_objWord .ActiveDocument.SaveAs strWrdPath If gBoolPrintOrNot = True Then .ActiveDocument.PrintOut DoEvents End If .ActiveDocument.Close End With m_objWord.Quit Set m_objDoc = Nothing Set m_objWord = Nothing It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... Any guidance much appreciated... Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 10 10:20:55 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 10 Nov 2004 11:20:55 -0500 Subject: [AccessD] If Then Else to Function Message-ID: I can not find any references to this on line or in books. I have tasks that fall into various buckets for users to process as they move through an approval process. The existing database defines these buckets using if..then..else statements across more forms and reports than I can name. Moving to the big time, how do I convert a statement show below to a function? This example defines if a task is in the AS Final Review queue. TaskStatus: IIf([RequestType] Not In ('Field Problem','Site Audit','Product Audit','Product Audit/Field Problem') And [Section] In (2,3) And [Status]='Open' And Not IsNull([ASSectCompletedDate]) And [ysnASTestRequired]=0 And [ysnASQARequired]=0,"In AS Final Review","Not In AS Final Review") From dwaters at usinternet.com Wed Nov 10 10:50:58 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 10 Nov 2004 10:50:58 -0600 Subject: [AccessD] If Then Else to Function In-Reply-To: <9452851.1100104133265.JavaMail.root@sniper4.usinternet.com> Message-ID: <001101c4c745$743074a0$de1811d8@danwaters> Karen, With the statement below, you are now in 'Final Review' status, not 'Open' status. I do this a lot. As you go through the process, the record needs to change status. For example, a Nonconforming Material record might go through the following status sequence: Description, Disposition, Approval (or Final Review), Finish, Closed. All of these are 'Open' except of course for Closed. As people enter more information, your code can change the record status as needed. This makes your code easier to use, and your users/managers can more easily understand where the process is if the status is displayed on-screen. For your reports, make a screen that will build a SQL statement based on the user's criteria. Then use that SQL statement in the 'Where' argument when the open the report. The form can have a combobox for each bucket. This gives you one report that can come close to being all things to all people. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 10, 2004 10:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] If Then Else to Function I can not find any references to this on line or in books. I have tasks that fall into various buckets for users to process as they move through an approval process. The existing database defines these buckets using if..then..else statements across more forms and reports than I can name. Moving to the big time, how do I convert a statement show below to a function? This example defines if a task is in the AS Final Review queue. TaskStatus: IIf([RequestType] Not In ('Field Problem','Site Audit','Product Audit','Product Audit/Field Problem') And [Section] In (2,3) And [Status]='Open' And Not IsNull([ASSectCompletedDate]) And [ysnASTestRequired]=0 And [ysnASQARequired]=0,"In AS Final Review","Not In AS Final Review") -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 10 11:16:46 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Nov 2004 09:16:46 -0800 Subject: [AccessD] event identification Message-ID: Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Wed Nov 10 11:32:41 2004 From: JColby at dispec.com (Colby, John) Date: Wed, 10 Nov 2004 12:32:41 -0500 Subject: [AccessD] event identification Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF96A@DISABILITYINS01> I downloaded the 3.0 for VBA. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 10, 2004 12:17 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 10 11:55:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Nov 2004 09:55:10 -0800 Subject: [AccessD] event identification Message-ID: Try the 4.0 too. You'll love it in .Net. It drove me crazy not to have my favorite tools (like the Find/replace and the ability to sort procedure and close windows) there, so I was ecstatic when they released 4.0 and was quite willing to pay the minimal price for it. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 9:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I downloaded the 3.0 for VBA. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, November 10, 2004 12:17 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] event identification Which one, John? They're both nice. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Wednesday, November 10, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] event identification I just downloaded this. Pretty nice. John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Tuesday, November 09, 2004 7:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] event identification There is a tool out there called "mztools" http://www.mztools.com/ that allows you to on a single click add the error handling code you are seeking (ie, the name of the calling function/sub) In this way you will know if it was the After/Before/Current event that triggered the error. btw, I noticed that now they support .net, but are now a pay service :| but at least 3.0 is still free :) On Tue, 9 Nov 2004 12:21:11 -0500, Susan Harkins wrote: > BTW, does anyone have a good online resource for an explanation of the > Access event model -- sequence and what's going on behind the scenes? > I just > need to check things before I go on record and in my usual search-challenged > way, I can't find anything worth squat. :( > > Susan H. > > > > That's what I thought. Thanks guys! > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 10 12:47:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 Nov 2004 10:47:13 -0800 Subject: [AccessD] Wait For Word To Finish Printing References: <2025BB6F17FCB54791F23CD505583328041BD4@starfleet.unknown.local> Message-ID: <41926231.2060405@shaw.ca> Word normally prints in the background, so you might close Word while it is still generating the print file. There are two ways to avoid this 1. Set the Background parameter of the PrintOut method to False, so that the next line of code doesn't execute until the print file has been spooled to the printer queue. ActiveDocument.Printout Background:=False 2. Check the BackgroundPrintingStatus property of Word's Application object, and don't close Word until the value reaches zero. To make sure that you aren't unnecessarily delaying the printing process by eating cycles within the same thread, use a timer that triggers a check every few seconds. Generally, option #1 is safer, because Word can sometimes get a bit confused if asked to background print too many documents at once. ACTEBS wrote: >Guys, > >I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > >The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > >It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > >I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > >Any guidance much appreciated... > >Vlad > > > > -- Marty Connelly Victoria, B.C. Canada From Mark.Mitsules at ngc.com Wed Nov 10 14:20:04 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 10 Nov 2004 15:20:04 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Group, I have two tables I would like to join. Tbl1.Fld1 contains a variable-length string, Tbl2.Fld2 contains the same variable-length string concatenated with a variable-length suffix. Any suggestions on how to proceed? Is there an elegant solution? Mark From Susan.Klos at fldoe.org Wed Nov 10 14:27:21 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Wed, 10 Nov 2004 15:27:21 -0500 Subject: [AccessD] connecting to a network drive for the back end Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> I have a database which has the FE on each machine and the BE on a network drive that is different from most of the rest of the network. My boss logs into the network drive with a different password than she uses for her regular network login. In order for her to have access to this drive she needs to open it and when she gets the new login window put in her password. The problem is that when she opens the FE it cannot find the "T" drive because she hasn't gotten access to it yet. She only goes to the T drive when necessary to retrieve data. She does not want to have to take this extra step. Sometimes she may have opened the T drive, but most of the time probably not. My problem is: How do I call the T drive login window for her so she can put in the password whenever she opens the FE on her computer? The application is set up such that whenever a user opens the FE on their machine, the application grabs the network login ID. I think I could pull that password but it is different that the T drive password. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From clh at christopherhawkins.com Wed Nov 10 14:31:59 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 10 Nov 2004 13:31:59 -0700 Subject: [AccessD] Color the tab heads in a Tab Control? Message-ID: <157240-2200411310203159140@christopherhawkins.com> Yes, it's another eye-candy inquiry. :p Are the tabs on a tab control color-able? It looks pretty funky to make the body of the tab control one color and leave the tabs themselves battleship gray. -C- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From ssharkins at bellsouth.net Wed Nov 10 14:59:44 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 10 Nov 2004 15:59:44 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <20041110205944.ECRU2429.imf23aec.mail.bellsouth.net@SUSANONE> Is the problem the actual join syntax or the fact that there will never be a match in the two fields? I'm guessing it's the latter, and if that's the case, you could use a query expression to return just the variable-length string (minus the suffix), and then join on that field. Sorry if I'm not understanding the problem. Susan H. Group, I have two tables I would like to join. Tbl1.Fld1 contains a variable-length string, Tbl2.Fld2 contains the same variable-length string concatenated with a variable-length suffix. Any suggestions on how to proceed? Is there an elegant solution? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Nov 10 16:58:00 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Nov 2004 17:58:00 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: References: Message-ID: <41929CF8.7070802@rogers.com> Mitsules, Mark wrote: >Group, > >I have two tables I would like to join. Tbl1.Fld1 contains a >variable-length string, Tbl2.Fld2 contains the same variable-length string >concatenated with a variable-length suffix. > >Any suggestions on how to proceed? Is there an elegant solution? > > >Mark > > At first blush I would try this: SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, LEN(T1.Field1)) Arthur From jmhla at earthlink.net Wed Nov 10 21:10:36 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:10:36 -0800 Subject: [AccessD] CheckDate? In-Reply-To: <20041102101516.73568.qmail@web61109.mail.yahoo.com> Message-ID: <000601c4c79c$07f37d80$6501a8c0@delllaptop> I used to know someone who would only use a calendar control for date input to insure proper date. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Tuesday, November 02, 2004 2:15 AM To: accessd at databaseadvisors.com Subject: [AccessD] CheckDate? Hi group, I created a routine that checks if a date is correct. Can anybody review this one? I think that it's unnecessary complex. TIA Sander If Not IsNull(txtExportDate) Then 'Check month part If Mid(txtExportDate, 4, 2) > 12 Then 'incorrect date! Else blnDate = True End If 'Check day part Select Case Left(txtExportDate, 2) Case 31 If (Mid(txtExportDate, 4, 2) = 1) Or _ (Mid(txtExportDate, 4, 2) = 3) Or _ (Mid(txtExportDate, 4, 2) = 5) Or _ (Mid(txtExportDate, 4, 2) = 7) Or _ (Mid(txtExportDate, 4, 2) = 8) Or _ (Mid(txtExportDate, 4, 2) = 10) Or _ (Mid(txtExportDate, 4, 2) = 12) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 30 If (Mid(txtExportDate, 4, 2) = 4) Or _ (Mid(txtExportDate, 4, 2) = 6) Or _ (Mid(txtExportDate, 4, 2) = 9) Or _ (Mid(txtExportDate, 4, 2) = 11) Then 'correct day - month combi blnDate = True Else 'incorrect day-month combi blnDate = False End If Case 28 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'correct date blnDate = True Else 'incorrectdate blnDate = False End If Case 1 To 27 'correct day - month combi blnDate = True Case 29 'Check if month is february If Mid(txtExportDate, 4, 2) = 2 Then 'incorrect date blnDate = False Else 'correctdate blnDate = True End If Case Else blnDate = False End Select Else 'Null date Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is verplicht.", _ vbExclamation, "Onjuiste datum") txtExportDate.SetFocus Exit Sub End If If Not blnDate Then Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ & vbCrLf & "" _ , vbCritical, "Onjuiste datum") txtExportDate.SetFocus Exit Sub Else --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Nov 10 21:15:56 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:15:56 -0800 Subject: [AccessD] Unused numbers? In-Reply-To: <2F7BA03C93D17D48B13C42228C8FDAF27856CD@server.domain.local> Message-ID: <000701c4c79c$c6356470$6501a8c0@delllaptop> It is more trouble. Rarely if ever do you want to reuse a primary field value. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Kettenbach Sent: Tuesday, November 09, 2004 8:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Unused numbers? I have an autonumber table of like 13000 records. Does anyone have any sample code to loop through the primary key field and find the numbers that are missing? Basically reuse old primary keys of deleted records. Maybe it's more trouble than it's worth. Thanks All!! CK -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Nov 10 21:18:59 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 10 Nov 2004 19:18:59 -0800 Subject: [AccessD] Missing months in a cross tab query In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE7393C@doesefpeml02.eus.fldoe.int> Message-ID: <000801c4c79d$32e30c30$6501a8c0@delllaptop> Susan, I would have to find my sample but there is a way to force to hard code the 12 months in order for your cross tab. E mail me off list if you need me to find my sample for you. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Monday, November 08, 2004 7:39 AM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Missing months in a crosstab query I have the following crosstab query which I am using to bind to a report: TRANSFORM Sum(tlnklodgingEvent.Guests) AS [Number] SELECT IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek") AS Type, "Cabin" AS Category FROM tblEvent INNER JOIN tlnklodgingEvent ON tblEvent.InvoiceNo = tlnklodgingEvent.EventID WHERE (((tlnklodgingEvent.LodgingID)=5 Or (tlnklodgingEvent.LodgingID)=7 Or (tlnklodgingEvent.LodgingID)=27 Or (tlnklodgingEvent.LodgingID)=30)) GROUP BY IIf([weekend]=True,"Cabin occupancy/Weekend","Cabin occupancy/Midweek"), "Cabin" PIVOT Month(tblEvent.Beginningdate); I want to have the report show all months even though there may be no data for a particular month. In the above query, I get data for January through June and September through December. Nobody stayed in cabins during July and August. So in the report I want to show zeroes in those columns. I tried using text boxes and IIF statements to test for null but I knew that wouldn't work because month numbers 7 and 8 aren't null they just don't exist in the query. I tried looking in help to see if there was an "if exists" function to see if I could see if the field exists in the query. I couldn't find anything like that. Should I be working at the query level instead to have the query insert a zero if there are months missing? If so I will need help on that also. Thanks in advance for any help. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From actebs at actebs.com.au Thu Nov 11 00:18:40 2004 From: actebs at actebs.com.au (ACTEBS) Date: Thu, 11 Nov 2004 17:18:40 +1100 Subject: [AccessD] Wait For Word To Finish Printing Message-ID: <2025BB6F17FCB54791F23CD5055833280886C1@starfleet.unknown.local> Marty, Thanks. It fixed my problem. I love this list! Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, 11 November 2004 5:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wait For Word To Finish Printing Word normally prints in the background, so you might close Word while it is still generating the print file. There are two ways to avoid this 1. Set the Background parameter of the PrintOut method to False, so that the next line of code doesn't execute until the print file has been spooled to the printer queue. ActiveDocument.Printout Background:=False 2. Check the BackgroundPrintingStatus property of Word's Application object, and don't close Word until the value reaches zero. To make sure that you aren't unnecessarily delaying the printing process by eating cycles within the same thread, use a timer that triggers a check every few seconds. Generally, option #1 is safer, because Word can sometimes get a bit confused if asked to background print too many documents at once. ACTEBS wrote: >Guys, > >I have a function that prints out numerous Word documents on the fly which I loop through. The problem is the print job hasn't finished and a dialogue box pops up suggesting that "If you close word now the document print job will be cancelled" > >The code is as follows: > > With m_objWord > .ActiveDocument.SaveAs strWrdPath > > If gBoolPrintOrNot = True Then > .ActiveDocument.PrintOut > DoEvents > End If > > .ActiveDocument.Close > End With > > m_objWord.Quit > Set m_objDoc = Nothing > Set m_objWord = Nothing > >It works well other than I have to close after I am finished as I don't want to leave variables in memory. Is there any way to wait until word has finished it's job? > >I have tried Dev's "ShellWait" function, but that is more geared to batch files rather than a windows app, and it's not the word document that is the process, it's word that is executing the process.... > >Any guidance much appreciated... > >Vlad > > > > -- 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 william.thompson1 at att.net Thu Nov 11 00:27:56 2004 From: william.thompson1 at att.net (William Thompson) Date: Wed, 10 Nov 2004 22:27:56 -0800 Subject: [AccessD] server? based trusted connection for multi-front-ends. Acc 200x SQL Server 2000 ; OLEDB.10.0 In-Reply-To: <000801c4c79d$32e30c30$6501a8c0@delllaptop> Message-ID: <200411110627.iAB6RoL19458@databaseadvisors.com> Note that the trusted connection string below does not specify a database, initially. Using authentication on SQL Server, I was itching to get to the bottom of how to query trusted connection (into or from an ADP) from Access to a secure stored procedure running in a secure SQL Svr database - the connection would be established to the server, while the Exec connects via permissions within the sproc to the database (the db would be 'locked down'). I'm not sure if this is the sole domain of Excel 2000+ pivot tables, or if a similarly robust and secure connection can be obtained from Access. The premise is that a Pivot table is run over data that is refreshed frequently - a copy of the raw data is needed behind the scenes to ensure it's captured. I was wanting to eventually get a server based query using Provider=Microsoft.Access.OLEDB.10.0; Data Provider=SQLOLEDB.1 ... somehow instead of the ODBC based connection utlized in the Fabrikami sample on MSDN: reportQuery = "EXECUTE Finance..xlExpenseReport" reportConnection = "ODBC;DRIVER=SQL Server;SERVER=FABRIKAM1;Trusted_Connection=Yes" After having initially explored loading what would apparently be a secure stored procedure (i.e. suser_sname() having exec, select on sproc) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fabrikam/ht ml/odc_ofexpense_report_solution_excel2003template.asp ...and using various Excel examples, particularly... http://www.excelkb.com/article.aspx?id=10132 and its companion article at http://www.excelkb.com/article.aspx?id=10131 ... and at http://vyaskn.tripod.com/row_level_security_in_sql_server_databases.htm I didn't get as far as I wanted to with the code, but I managed to hammer out the Excel based code below - including the sproc - it should work for the benefit of anyone having SQL server and Excel or Access wanting to document schema quickly. Any ideas on how to 'mirror' recordsets i.e. connect a pivot table, then Access for raw underlying data via two connections with the same exec string would be greatly appreciated. The web examples as cited above instruct on how to set up row level permissions quickly (which I think/hope is the purpose of the painstaking focus on trusted connections here and in Access). Private Sub CommencePivot1() ''' Using trusted connection in front-end Dim startDate As String Dim endDate As String Dim currencyCode As String Dim pivotTableName As String Dim invalidDateErrorText As String Dim startDateErrorText As String Dim reportQuery As String Dim reportConnection As String Dim formatCast As String Application.ScreenUpdating = False 'Data input validation SelectASheet ("Sheet1") pivotTableName = "PivotTable1" 'Initialize variables strDatabase = CStr(Trim(InputBox("Enter Database Name to display Schema", "Query Macro", "Test Source"))) reportQuery = "EXECUTE pubs..pr_tmpSchema '" + strDatabase + "'" reportConnection = "ODBC;DRIVER=SQL Server;SERVER=myServer;Trusted_Connection=Yes" On Error GoTo ErrorHandler With ActiveSheet.PivotTables(pivotTableName) .PivotCache.Connection = reportConnection '' Careful not to mash this together with another Pivot table. '' Keep ado and odbc separate (at least in Excel) .PivotCache.CommandText = reportQuery .PivotCache.Refresh End With 'Save input parameters to spreadsheet ActiveSheet.Range("F2").Value = strDatabase ActiveSheet.Range("F3").Value = "Tap Pivot Source" SelectASheet("QTable") ''' would branch another connection rendering the same rst to ''' preferably Access if secure or 2nd front-end ''' ?? CreateQueryTable(reportquery) Application.ScreenUpdating = True exithere: Exit Sub ErrorHandler: MsgBox Err.Number & " - " & Err.Description Resume exithere End Sub Public Sub SelectASheet(ByVal strSheetName As String) Sheets(strSheetName).Select exithere: Exit Sub errhandler: MsgBox Err.Description & " " & "You may want to create or synchronize" Resume exithere End Sub '' -- The Stored Proc follows - may come in handy for documentation '' -- Exec pr_tmpSchema NameOfDatabase //you want documented. '' -- Simulates more or less restricted access CREATE PROC pr_tmpSchema @strDatabaseName varchar(75) As Declare @SQL varchar(8000) Declare @CleanupSQL varchar(8000) Declare @tablename nvarchar(75) IF @@ERROR <> 0 PRINT "ERROR IN DECLARATION" -- I didn't have time to pull this @tablename -- structure out - it does nothing here Select @tablename = 'tmpTemp1' Select @CleanupSQL = ('IF EXISTS (SELECT name FROM sysobjects ' + ' WHERE name = ''' + @tablename + ''' AND type = ''U'') ' + 'DROP TABLE ' + @tablename) EXEC (@CleanupSQL) IF EXISTS (SELECT name FROM sysobjects WHERE name = 'tmpTemp1' AND type = 'U') EXEC ('DROP TABLE ' + @tablename) -- SELECT @strGetDBSQL = 'USE ' + @DBName + ' GO' SET NOCOUNT ON BEGIN SELECT @SQL = ('USE ' + @strDatabaseName + ' Select TABLE_CATALOG = Left(TABLE_CATALOG, 75),' + ' TABLE_SCHEMA = Left(TABLE_SCHEMA, 30), TABLE_NAME = Left(TABLE_NAME, 75),' + 'COLUMN_NAME = Left(COLUMN_NAME, 75),DATA_TYPE = Left(DATA_TYPE, 30), CHARACTER_MAXIMUM_LENGTH = Left(CHARACTER_MAXIMUM_LENGTH, 30),' + 'IS_NULLABLE = Left(IS_NULLABLE, 10), COLUMN_DEFAULT = LEFT(COLUMN_DEFAULT, 255)' + 'From Information_Schema.columns ' + 'Where Table_Name like ''%''' + ' And Table_Name in (Select Table_Name from Information_Schema.Tables WHERE TABLE_TYPE = ''BASE TABLE'')' + ' And Table_Name not like ''dt%''') -- -------------- -- print 'Test4:' -- SELECT @SQL -- -------------- -- ran out of time to explore COLUMN_DEFAULT) -- -------------- EXEC(@SQL) END * * * Bill Thompson, Washington State, U.S. From gustav at cactus.dk Thu Nov 11 04:22:36 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 11:22:36 +0100 Subject: [AccessD] connecting to a network drive for the back end In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> References: <01B619CB8F6C8C478EDAC39191AEC51EE73950@doesefpeml02.eus.fldoe.int> Message-ID: <1628525408.20041111112236@cactus.dk> Hi Susan You can run a Shell command like: net use T: \\server\share password /user:username /gustav > I have a database which has the FE on each machine and the BE on a network > drive that is different from most of the rest of the network. My boss logs > into the network drive with a different password than she uses for her > regular network login. In order for her to have access to this drive she > needs to open it and when she gets the new login window put in her password. > The problem is that when she opens the FE it cannot find the "T" drive > because she hasn't gotten access to it yet. She only goes to the T drive > when necessary to retrieve data. She does not want to have to take this > extra step. Sometimes she may have opened the T drive, but most of the time > probably not. My problem is: How do I call the T drive login window for her > so she can put in the password whenever she opens the FE on her computer? > The application is set up such that whenever a user opens the FE on their > machine, the application grabs the network login ID. I think I could pull > that password but it is different that the T drive password. From Paul.Rogers at SummitMedia.co.uk Thu Nov 11 04:50:05 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 11 Nov 2004 10:50:05 -0000 Subject: [AccessD] Access with a MySQL database Message-ID: Hi Arthur I'd be very much obliged if you could let us/me know when your words on MsSql are published on a website. Thanks very much for the info here which is most useful. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 28 October 2004 02:54 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access with a MySQL database MartyConnelly wrote: > Something I came across from an ASP perspective > http://www.aspfree.com/c/a/Microsoft-Access/An-Access-Front-End-to-MySQL/ > > Barbara Ryan wrote: > >> Does anyone have any experience using an Access application as a >> front-end to a MySQL database back-end? My client is interested in >> converting the Access back-end to either SQL Server or MySQL. They >> currently do not own SQL Server but are using MySQL in their web >> application. >> >> Any thoughts (advantages, limitations, etc.)? >> >> Thanks, >> Barb Ryan >> >> > Hmph. I thought I answered this already, but it must have been a senior moment. I have been there and done that extensively, for the book (that was cancelled, and will soon re-emerge as a web site) my partner Peter Brawley and I wrote about MySQL. AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Rogers at SummitMedia.co.uk Thu Nov 11 05:05:56 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 11 Nov 2004 11:05:56 -0000 Subject: [AccessD] Function No Go Message-ID: A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul From gustav at cactus.dk Thu Nov 11 05:07:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 12:07:07 +0100 Subject: [AccessD] Joining Two Tables In-Reply-To: <41929CF8.7070802@rogers.com> References: <41929CF8.7070802@rogers.com> Message-ID: <4311196319.20041111120707@cactus.dk> Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length string >>concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur From jmhla at earthlink.net Thu Nov 11 07:00:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 11 Nov 2004 05:00:45 -0800 Subject: [AccessD] Function No Go In-Reply-To: Message-ID: <200411111300.iABD0mL10482@databaseadvisors.com> Are you missing library references not being loaded into the new machine? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Rodgers Sent: Thursday, November 11, 2004 3:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Function No Go A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Nov 11 07:13:28 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 08:13:28 -0500 Subject: [AccessD] Function No Go In-Reply-To: Message-ID: As Joe said, it's references. Open a module in design view, click tools/references. Look for any listed as MISSING or BROKEN. If they are, you'll need to figure out why. If none are, check any unchecked reference, close the MDB and Access, re-open and uncheck the reference just checked. Then try a compile. If still no go then a lib needs to be re-registered with regsvr32 (usually it's DAO). Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Paul Rodgers Sent: Thursday, November 11, 2004 6:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Function No Go A new machine comes my way, and beautiful as it is, it is too haughty for Functions. 'Functon is not available in expressions in query expression ... ' and then quotes the simplest function I've been using for ages. Is there a Preference or some sort to encourage it to think differently, please. Access2K. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Nov 11 07:35:09 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 08:35:09 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length string >>concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ 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 Nov 11 08:23:06 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 Nov 2004 09:23:06 -0500 Subject: [AccessD] CheckDate? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A278D@xlivmbx21.aig.com> I'm one of those odd people who always use a calendar form (not the MS Active-X control) for date entering, but if you really must allow those whacko users to type a date in a box then what's wrong with this code... Dim bIsValideDate As Boolean bIsValideDate =isDate(txtYourFormControl) If bIsValideDate Then ... Else MsgBox "Can you at least type a valid date in the box! End If Is that sufficiently uncomplex :-) "isDate()" is a built in function. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: Wednesday, November 10, 2004 10:11 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] CheckDate? > > I used to know someone who would only use a calendar control for date > input > to insure proper date. > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D > Sent: Tuesday, November 02, 2004 2:15 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] CheckDate? > > Hi group, > > I created a routine that checks if a date is correct. Can anybody review > this one? I think that it's unnecessary complex. > > TIA > > Sander > If Not IsNull(txtExportDate) Then > 'Check month part > If Mid(txtExportDate, 4, 2) > 12 Then > 'incorrect date! > Else > blnDate = True > End If > 'Check day part > Select Case Left(txtExportDate, 2) > Case 31 > If (Mid(txtExportDate, 4, 2) = 1) Or _ > (Mid(txtExportDate, 4, 2) = 3) Or _ > (Mid(txtExportDate, 4, 2) = 5) Or _ > (Mid(txtExportDate, 4, 2) = 7) Or _ > (Mid(txtExportDate, 4, 2) = 8) Or _ > (Mid(txtExportDate, 4, 2) = 10) Or _ > (Mid(txtExportDate, 4, 2) = 12) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 30 > If (Mid(txtExportDate, 4, 2) = 4) Or _ > (Mid(txtExportDate, 4, 2) = 6) Or _ > (Mid(txtExportDate, 4, 2) = 9) Or _ > (Mid(txtExportDate, 4, 2) = 11) Then > 'correct day - month combi > blnDate = True > Else > 'incorrect day-month combi > blnDate = False > End If > Case 28 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'correct date > blnDate = True > Else > 'incorrectdate > blnDate = False > End If > Case 1 To 27 > 'correct day - month combi > blnDate = True > Case 29 > 'Check if month is february > If Mid(txtExportDate, 4, 2) = 2 Then > 'incorrect date > blnDate = False > Else > 'correctdate > blnDate = True > End If > Case Else > blnDate = False > End Select > Else > 'Null date > Call MsgBox("U heeft geen exporteer datum opgegeven! Deze is > verplicht.", _ > vbExclamation, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > End If > If Not blnDate Then > Call MsgBox("De datum die u heeft opgegeven is onjuist! " _ > & vbCrLf & "Vul een datum in met formaat: DD-MM-YYYY" _ > & vbCrLf & "" _ > , vbCritical, "Onjuiste datum") > txtExportDate.SetFocus > Exit Sub > Else > > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.com/a > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 09:05:40 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 16:05:40 +0100 Subject: [AccessD] SQLiteDB, tiny engine Message-ID: <16625509500.20041111160540@cactus.dk> Hi all For those of you looking for an alternative SQL server engine which will run on both Linux and Windows, have a look here for an Open Source completely free *tiny_tiny* basic engine: http://www.terrainformatica.com/users/george/index.html Note that you will have to manually register the dll. SQLiteDB is a full database engine in a ~330Kb DLL built as an ATL COM wrapper over sqlite. And it is *fast* ..." SQLiteDB's object model is similar to ADO, featuring both a Connection and Recordset object. There are, however, differences between the libraries: - SQLiteDB does not include a Fields Collection; the main reason for this is simplicity and speed. - ADO is only a library to connect to other database engines, SQLiteDB is both the database engine and the library to connect to it. SQLite (mostly for C++ people) is here: http://www.sqlite.org /gustav From Mark.Mitsules at ngc.com Thu Nov 11 09:39:59 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 10:39:59 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark From DElam at jenkens.com Thu Nov 11 09:49:08 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 Nov 2004 09:49:08 -0600 Subject: [AccessD] Import from .prn File Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jimdettman at earthlink.net Thu Nov 11 10:08:10 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 11:08:10 -0500 Subject: [AccessD] Import from .prn File In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> Message-ID: Debbie, <> Not to be flippant, but don't. The contents of a .prn file are dependant on the printer driver used to create it. If you have no control over that, then the contents and encoding of that file could/will be different from one file to the next. If you do have control over the file creation, use the Generic Text Only driver to produce it. You should be able to use the Access Import Wizard at that point or use VB code to read it in line by line. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, November 11, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Import from .prn File I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Nov 11 10:09:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 02:09:58 +1000 Subject: [AccessD] Import from .prn File In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C02485711@natexch.jenkens.com> Message-ID: <41941B76.29714.70C62D@lexacorp.com.pg> On 11 Nov 2004 at 9:49, Elam, Debbie wrote: > I am trying to import some data from a .prn file. When I open the file in > notepad it gives me gibberish, so I assume I will need to open it or convert > it with specific software. I found a trial version of ABC Amber CSV > converter. It claims to be able to convert a .prn to an Excel spreadsheet. > The trial version only imports 10 records, and they look just like the > gibberish in notepad, just put into columns. I am a little reluctant to > spring even for $14.95 given the trial performance, but I have not found > anything else to allow me to read this file properly. > > Does anyone have suggestions about how to import this file into Access? > If you have generated the .prn file by directing the output of a printer to file, you are probably putting out a graphic data dump not text so you will not be able to import it with ABC Amberm or amny other smilar tool Recreate the file. This time use the "Generic/Text only" printer driver instead of the one you are currently using. -- Stuart From jwcolby at colbyconsulting.com Thu Nov 11 10:11:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Nov 2004 11:11:07 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: <005901c4c809$11591c50$e8dafea9@ColbyM6805> Count(PK) as Cnt in the select clause Where PK is the primary key John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Thu Nov 11 10:25:00 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 Nov 2004 10:25:00 -0600 Subject: [AccessD] Import from .prn File Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C02485715@natexch.jenkens.com> Thanks, I will see if I can use a more generic printer driver to get the file. Debbie -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Import from .prn File Debbie, <> Not to be flippant, but don't. The contents of a .prn file are dependant on the printer driver used to create it. If you have no control over that, then the contents and encoding of that file could/will be different from one file to the next. If you do have control over the file creation, use the Generic Text Only driver to produce it. You should be able to use the Access Import Wizard at that point or use VB code to read it in line by line. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, November 11, 2004 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Import from .prn File I am trying to import some data from a .prn file. When I open the file in notepad it gives me gibberish, so I assume I will need to open it or convert it with specific software. I found a trial version of ABC Amber CSV converter. It claims to be able to convert a .prn to an Excel spreadsheet. The trial version only imports 10 records, and they look just like the gibberish in notepad, just put into columns. I am a little reluctant to spring even for $14.95 given the trial performance, but I have not found anything else to allow me to read this file properly. Does anyone have suggestions about how to import this file into Access? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jimdettman at earthlink.net Thu Nov 11 10:35:08 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 11:35:08 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Thu Nov 11 11:12:18 2004 From: James at fcidms.com (James Barash) Date: Thu, 11 Nov 2004 12:12:18 -0500 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <006f01c4c6a7$04ba1ac0$f8c581d5@pedro> Message-ID: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> All: I was visiting a client today who was having a problem with our system. None of the reports would print or preview. From the database window, I was unable to Preview or Design any of the existing reports and was unable to create a new report, either using the Design View or the Report Wizard. I created a blank database and also could not create any reports. Trying to open or design did not produce any error message, but did not open a report either. Using the Report Wizard, I got through all the prompts and after clicking the Finished button, I got the message "Unable to Create Report" I could create all the other types of objects: Tables, Queries, Forms, Macros and Modules. The system was working as of last week and he assured me there had been no changes to the computer since. Our system does work on other computer in the same office. The system is a single file running on the local drive. The user does have admin rights (create, read, write, update, delete) on the local drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I suggested that reloading Office would be the best thing to do but that has to be done through their IT department and could take a while. Has anyone seen this before and have a solution or any suggestions. Thanks, James Barash From liz at symphonyinfo.com Thu Nov 11 11:32:10 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Thu, 11 Nov 2004 11:32:10 -0600 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> Message-ID: Did your client's computer have a default printer assigned? If none is assigned, Access won't do anything with reports. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Barash Sent: Thursday, November 11, 2004 11:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unable to Open or Design Reports All: I was visiting a client today who was having a problem with our system. None of the reports would print or preview. From the database window, I was unable to Preview or Design any of the existing reports and was unable to create a new report, either using the Design View or the Report Wizard. I created a blank database and also could not create any reports. Trying to open or design did not produce any error message, but did not open a report either. Using the Report Wizard, I got through all the prompts and after clicking the Finished button, I got the message "Unable to Create Report" I could create all the other types of objects: Tables, Queries, Forms, Macros and Modules. The system was working as of last week and he assured me there had been no changes to the computer since. Our system does work on other computer in the same office. The system is a single file running on the local drive. The user does have admin rights (create, read, write, update, delete) on the local drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I suggested that reloading Office would be the best thing to do but that has to be done through their IT department and could take a while. Has anyone seen this before and have a solution or any suggestions. Thanks, James Barash -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Nov 11 11:34:59 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Nov 2004 18:34:59 +0100 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> References: <0I70005JRYGIP8@mta10.srv.hcvlny.cv.net> Message-ID: <15734468543.20041111183459@cactus.dk> Hi James This sounds as if no default printer or no printer at all is installed. /gustav > I was visiting a client today who was having a problem with our system. None > of the reports would print or preview. From the database window, I was > unable to Preview or Design any of the existing reports and was unable to > create a new report, either using the Design View or the Report Wizard. I > created a blank database and also could not create any reports. Trying to > open or design did not produce any error message, but did not open a report > either. Using the Report Wizard, I got through all the prompts and after > clicking the Finished button, I got the message "Unable to Create Report" I > could create all the other types of objects: Tables, Queries, Forms, Macros > and Modules. The system was working as of last week and he assured me there > had been no changes to the computer since. Our system does work on other > computer in the same office. > The system is a single file running on the local drive. The user > does have admin rights (create, read, write, update, delete) on the local > drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I > suggested that reloading Office would be the best thing to do but that has > to be done through their IT department and could take a while. Has anyone > seen this before and have a solution or any suggestions. > Thanks, > James Barash From artful at rogers.com Thu Nov 11 11:38:57 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 11 Nov 2004 12:38:57 -0500 Subject: [AccessD] Access with a MySQL database In-Reply-To: References: Message-ID: <4193A3B1.1010302@rogers.com> Paul Rodgers wrote: >Hi Arthur > >I'd be very much obliged if you could let us/me know when your words on >MsSql are published on a website. > >Thanks very much for the info here which is most useful. > >Cheers > >paul > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: 28 October 2004 02:54 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access with a MySQL database > > >MartyConnelly wrote: > > > >>Something I came across from an ASP perspective >>http://www.aspfree.com/c/a/Microsoft-Access/An-Access-Front-End-to-MySQL/ >> >>Barbara Ryan wrote: >> >> >> >>>Does anyone have any experience using an Access application as a >>>front-end to a MySQL database back-end? My client is interested in >>>converting the Access back-end to either SQL Server or MySQL. They >>>currently do not own SQL Server but are using MySQL in their web >>>application. >>> >>>Any thoughts (advantages, limitations, etc.)? >>> >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >Hmph. I thought I answered this already, but it must have been a senior >moment. I have been there and done that extensively, for the book (that >was cancelled, and will soon re-emerge as a web site) my partner Peter >Brawley and I wrote about MySQL. >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > Thanks for asking. It shouldn't be a whole lot longer now; we're proofing it currently. (We = my long-time partner Peter Brawley and I.) I'm not sure how much of the "book" will be of interest to Access developers. One chatper in the ODBC section takes you step by step through porting Northwind to MySQL and then modifying the Access app to talk to the MySQL Northwind database. Actually there's not much to it, and I can thumbnail it here. There's really only one thing to worry about. Before converting, it's useful to add a timestamp column to each table -- just make it a DateTime column and default it to "=Now()". 1. Install MySQL and make sure it works. 2. Create a Northwind database in MySQL. 3. Install MyODBC. 4. Copy Northwind.MDB to NorthwindMySQL.MDB. Delete all the tables. 5. Create a DSN that uses MyODBC and points to the Northwind MySQL database. 6. Open the NorthwindMySQL.mdb and then the linked tables manager and point to the DSN. 7. Import all the tables. 8. You'll have problems with a few queries. I forget which ones offhand and don't have the chapter in front of me, but the chapter details which ones need changing and specifies the changes. Arthur From artful at rogers.com Thu Nov 11 11:44:55 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 11 Nov 2004 12:44:55 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: <4311196319.20041111120707@cactus.dk> References: <41929CF8.7070802@rogers.com> <4311196319.20041111120707@cactus.dk> Message-ID: <4193A517.1050002@rogers.com> Gustav Brock wrote: >Hi Mark and Arthur > >That may work but you'll be in trouble when trying to switch to design >view. > > > Design view is for wieners. In fact monitors are for wieners. Real programmers don't use compilers, they write compilers. Real programmers don't even need keyboards. They use voice-recognition software and emit ones and zeroes for a long time, and the results are vastly successful applications and games. From Mark.Mitsules at ngc.com Thu Nov 11 12:08:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 13:08:00 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 12:36:56 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 Nov 2004 13:36:56 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A279B@xlivmbx21.aig.com> 'fraid not. That will just give you "1" in every row (after you've turn the query into a Totals query, .Count(PK) as Cnt simply wont work at all in a standard select query). My question is why you want to do this in a query? If the end result it to be used in a report or a form then you don't need to modify the query, instead you modify the report or form to use the RunningSum property. It's all there in the on-line help. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Thursday, November 11, 2004 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Query - Add Recordcount Field > > Count(PK) as Cnt in the select clause > > Where PK is the primary key > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark > Sent: Thursday, November 11, 2004 10:40 AM > To: [AccessD] > Subject: [AccessD] Query - Add Recordcount Field > > > Group, > > Someone has this at the top of their head or near their > fingertips...hopefully. In a query, what is the syntax to add a running > recordcount column? Thanks. > > > Mark > -- > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 11 12:41:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Nov 2004 13:41:45 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: <005e01c4c81e$1c78a820$e8dafea9@ColbyM6805> You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 12:46:15 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 13:46:15 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Thu Nov 11 13:25:19 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 14:25:19 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Lambert, My current method does utilize the RunningSum property. This question loosely relates to a previous thread regarding table joins. I'm hoping to eventually run across the subject of subqueries in my archives which ties these two threads together. Mark -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Thursday, November 11, 2004 1:37 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field 'fraid not. That will just give you "1" in every row (after you've turn the query into a Totals query, .Count(PK) as Cnt simply wont work at all in a standard select query). My question is why you want to do this in a query? If the end result it to be used in a report or a form then you don't need to modify the query, instead you modify the report or form to use the RunningSum property. It's all there in the on-line help. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Thursday, November 11, 2004 11:11 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Query - Add Recordcount Field > > Count(PK) as Cnt in the select clause > > Where PK is the primary key > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark > Sent: Thursday, November 11, 2004 10:40 AM > To: [AccessD] > Subject: [AccessD] Query - Add Recordcount Field > > > Group, > > Someone has this at the top of their head or near their > fingertips...hopefully. In a query, what is the syntax to add a running > recordcount column? Thanks. > > > Mark > -- > 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 Thu Nov 11 13:26:54 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 14:26:54 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Jim, Would you be willing to look at the SQL off-list? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 1:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 11 14:01:28 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Nov 2004 12:01:28 -0800 Subject: [AccessD] Joining Two Tables In-Reply-To: <4193A517.1050002@rogers.com> Message-ID: Arthur: Do I catch a very subtle note of sarcasm or should I be seriously reconsidering my programming style? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, November 11, 2004 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Gustav Brock wrote: >Hi Mark and Arthur > >That may work but you'll be in trouble when trying to switch to design >view. > > > Design view is for wieners. In fact monitors are for wieners. Real programmers don't use compilers, they write compilers. Real programmers don't even need keyboards. They use voice-recognition software and emit ones and zeroes for a long time, and the results are vastly successful applications and games. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Thu Nov 11 14:05:04 2004 From: lists at theopg.com (MarkH) Date: Thu, 11 Nov 2004 20:05:04 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> Didn't read the whole thread so sorry if this has been done... You don?t need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From Mark.Mitsules at ngc.com Thu Nov 11 14:29:55 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 15:29:55 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Thu Nov 11 14:44:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 11 Nov 2004 15:44:39 -0500 Subject: [AccessD] Joining Two Tables Message-ID: Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu Nov 11 15:30:25 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 11 Nov 2004 16:30:25 -0500 Subject: [AccessD] Query - Add Recordcount Field In-Reply-To: Message-ID: Mark, Sure. But on would be fine too; it is on topic. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 2:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field Jim, Would you be willing to look at the SQL off-list? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 1:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, Still should have numbered each row in the final output. I just tried it here and it works fine. SELECT tblLookupControl.FormName, GetLineCounter([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I'm not clear on how you ended up with the same result with the two methods either. If I do: SELECT tblLookupControl.FormName, Count([FormName]) AS LineNumber FROM tblLookupControl GROUP BY tblLookupControl.FormName; I get the number of occurrences within each group. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 11 18:32:03 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 11:32:03 +1100 Subject: [AccessD] A2003: Filter Property Message-ID: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Hello all The help wasn't very helpful I want to apply a filter to a form using criteria from other controls like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = true It doesn't seem to work (IE It returns no results) But I have about 20 records where about 6 of those records have the same DateOfBilling date as I am typing into txtStartDate field So why don't I see those 6 returned from the 20?? Many thanks Darren From stuart at lexacorp.com.pg Thu Nov 11 18:48:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 10:48:13 +1000 Subject: [AccessD] A2003: Filter Property In-Reply-To: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Message-ID: <419494ED.24745.67A7C4@lexacorp.com.pg> On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like > Me.Filter = "DateOfBilling = " & Me.txtStartDate > Me.FilterOn = true > > > It doesn't seem to work (IE It returns no results) > But I have about 20 records where about 6 of those records > have the same DateOfBilling date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart From ssharkins at bellsouth.net Thu Nov 11 18:51:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 11 Nov 2004 19:51:26 -0500 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <20041112005125.GAXE2430.imf22aec.mail.bellsouth.net@SUSANONE> If the delimiters are the problem as Stuart suggests, you should be able to use the following: Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" I know that the Filter property can be a real pia, but I don't remember why off the top of my head. Don't forget to enable it -- something like Me.Filter.On = True ???? Really not sure about that last one -- but you need to make sure the form knows to actually use the filter. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 11, 2004 7:48 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 11 18:52:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 Nov 2004 16:52:58 -0800 Subject: [AccessD] A2003: Filter Property Message-ID: Darren, The Form's filter property is a string but if you're trying to apply the filter to a date field, make sure you include the hash marks around the date string so the datasource can compare it properly. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 11, 2004 4:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Filter Property Hello all The help wasn't very helpful I want to apply a filter to a form using criteria from other controls like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = true It doesn't seem to work (IE It returns no results) But I have about 20 records where about 6 of those records have the same DateOfBilling date as I am typing into txtStartDate field So why don't I see those 6 returned from the 20?? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Nov 11 19:03:25 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 12 Nov 2004 11:03:25 +1000 Subject: [AccessD] A2003: Filter Property In-Reply-To: <20041112005125.GAXE2430.imf22aec.mail.bellsouth.net@SUSANONE> References: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <4194987D.4043.759244@lexacorp.com.pg> On 11 Nov 2004 at 19:51, Susan Harkins wrote: > If the delimiters are the problem as Stuart suggests, you should be able to > use the following: > > Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" > Nope, Darren's an Aussie. Doing it that way gets the month and day reversed if he is using the default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work at all if he using something like "12 Nov 04" :-( -- Stuart From d.dick at uws.edu.au Thu Nov 11 19:41:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 12:41:18 +1100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <200411120141.iAC1fXdQ003082@cooper.uws.edu.au> Hi Stuart et al Excellent - DateValue('" & Me.txtStartDate & "')" works like a charm Next q :-)) What would the syntax be or a date range Eg in SQL you'd write something like... >= Me.txtStartDate and <= Me.txEndDate How does this apply to a filter or does it not apply?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ 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 Nov 11 19:45:14 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 12 Nov 2004 12:45:14 +1100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <419494ED.24745.67A7C4@lexacorp.com.pg> Message-ID: <200411120145.iAC1jUdQ007739@cooper.uws.edu.au> Oops worked it out It's Me.Filter = "DateOfBilling >= DateValue('" & Me.txtStartDate & "')" _ & "and DateOfBilling <= DateValue('" & Me.txtEndDate & "')" Many thanks y'all See ya Darren Stuart --- you da man !!!!!!!!!!!!1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Thu Nov 11 23:34:59 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 12 Nov 2004 11:04:59 +0530 Subject: [AccessD] A2003: Filter Property References: <200411120145.iAC1jUdQ007739@cooper.uws.edu.au> Message-ID: <019201c4c879$8a5ff900$e81865cb@winxp> Using Date Variables In A Criteria String =========================== Certain aspects required to be kept in view ---------------------------------------------------- Similar topic came up in one of the other discussion groups, where it was pointed out by John Viescas, that when a date variable (in its raw state) is concatenated within a string, it will get embedded in a format governed by existing regional settings (for short date) on the particular computer. This can lead to unexpected results where the computer's system settings are not conforming to U.S. convention (mm-dd-yyyy). It was therefore concluded that as a foolproof measure for consistent results, the date variable should first be converted into a non-ambiguous string format (or into U.S style format), before being concatenated with the main statement. An example is given below (TDate is a date type field in table T_Test, while StartDate & FinDate are variables holding date values)- StrSQL = "DELETE * FROM T_Test" StrSQL = StrSQL & " WHERE TDate Between #" & _ Format(StartDate, "dd-mmm-yyyy") & "#" StrSQL = StrSQL & " AND #" & _ Format(FinDate, "dd-mmm-yyyy") & "#;" A.D.Tejpal -------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 07:15 Subject: RE: [AccessD] A2003: Filter Property Oops worked it out It's Me.Filter = "DateOfBilling >= DateValue('" & Me.txtStartDate & "')" _ & "and DateOfBilling <= DateValue('" & Me.txtEndDate & "')" Many thanks y'all See ya Darren Stuart --- you da man !!!!!!!!!!!!1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, 12 November 2004 11:48 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Filter Property On 12 Nov 2004 at 11:32, Darren DICK wrote: > Hello all > The help wasn't very helpful > I want to apply a filter to a form using criteria from other controls > like Me.Filter = "DateOfBilling = " & Me.txtStartDate Me.FilterOn = > true > > > It doesn't seem to work (IE It returns no results) But I have about 20 > records where about 6 of those records have the same DateOfBilling > date as I am typing into txtStartDate field > > So why don't I see those 6 returned from the 20?? > Good old Internationalisation and date display formats strikes again? Try Me.Filter = "DateOfBilling = DateValue('" & Me.txtStartDate & "')" Stuart From Paul.Rogers at SummitMedia.co.uk Fri Nov 12 02:45:01 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 12 Nov 2004 08:45:01 -0000 Subject: [AccessD] Access with a MySQL database Message-ID: All noted, Arthur, thanks very much. Will try from these notes - and looking forward to your posting on the net. Hope things are ok with you. Cheers paul -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: 11 November 2004 17:39 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access with a MySQL database From gustav at cactus.dk Fri Nov 12 04:54:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 11:54:14 +0100 Subject: [AccessD] Joining Two Tables In-Reply-To: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> References: <000201c4c829$bcfa6f80$d30d6bd5@netboxxp> Message-ID: <872658342.20041112115414@cactus.dk> Hi Mark That's right, though I only do that when absolutely needed. Look up in the archive for July 2002: SQL in-line subquery (solved) for the []. AS TableX syntax. /gustav > That is exactly what I ended up doing. But since I lack the SQL "guru" > certification ;) I thought I'd put the question out there. I was > thinking back to a thread a long while back regarding a method that > creates a sort of temporary table within one query...or something along > those lines. I didn't know if/how that method might apply to my > situation. > Mark > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, November 11, 2004 6:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Joining Two Tables > Hi Mark and Arthur > That may work but you'll be in trouble when trying to switch to design > view. I would create a query for Tbl2 with a field with the expression > needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you > need to join Tbl1 and Tbl2. > /gustav >>>I have two tables I would like to join. Tbl1.Fld1 contains a >>>variable-length string, Tbl2.Fld2 contains the same variable-length >>>string concatenated with a variable-length suffix. >>> >>>Any suggestions on how to proceed? Is there an elegant solution? >>> >>>Mark >> At first blush I would try this: >> >> SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, >> LEN(T1.Field1)) >> Arthur From gustav at cactus.dk Fri Nov 12 05:17:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 12:17:00 +0100 Subject: [AccessD] A2003: Filter Property In-Reply-To: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> References: <200411120032.iAC0WIdQ025524@cooper.uws.edu.au> Message-ID: <1844024677.20041112121700@cactus.dk> Hi Darren The only foolproof way is to force US formatting of date strings: Me.Filter = "DateOfBilling = " & _ Format(Me.txtStartDate, "\# mm\/dd\/yyyy \#") /gustav > I want to apply a filter to a form using criteria from other controls > like > Me.Filter = "DateOfBilling = " & Me.txtStartDate > Me.FilterOn = true > It doesn't seem to work (IE It returns no results) > But I have about 20 records where about 6 of those records > have the same DateOfBilling date as I am typing into txtStartDate field > So why don't I see those 6 returned from the 20?? From Paul.Rogers at SummitMedia.co.uk Fri Nov 12 05:35:51 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 12 Nov 2004 11:35:51 -0000 Subject: [AccessD] Function No Go Message-ID: Many thanks, Joe Hecht and Jim Dettman. Exactly the problem - and it was DAO. Having that hint of DAO cut the corners and made it a very quick correction. (I had feared it might take an hour or more). Most grateful. Cheers paul -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: 11 November 2004 13:13 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Function No Go As Joe said, it's references. Open a module in design view, click tools/references. Look for any listed as MISSING or BROKEN. If they are, you'll need to figure out why. If none are, check any unchecked reference, close the MDB and Access, re-open and uncheck the reference just checked. Then try a compile. If still no go then a lib needs to be re-registered with regsvr32 (usually it's DAO). Jim Dettman From accessd667 at yahoo.com Fri Nov 12 07:07:01 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 12 Nov 2004 05:07:01 -0800 (PST) Subject: [AccessD] OT: Outlook programming sites/info Message-ID: <20041112130702.53053.qmail@web61103.mail.yahoo.com> Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com From andy at minstersystems.co.uk Fri Nov 12 06:37:57 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Nov 2004 13:37:57 +0100 Subject: [AccessD] OT: Outlook programming sites/info Message-ID: <20041112133754.5D056250798@smtp.nildram.co.uk> Try http://www.slipstick.com/ http://www.outlookcode.com http://www.outlook-tips.net/index.html -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Date: 12/11/04 13:10 > > Hi group, > > I need to do some outlook programming (couple of forms etc.) > does anybody know some good oulook programming websites? > > TIA > > Sander > > > --------------------------------- > Do you Yahoo!? > Check out the new Yahoo! Front Page. www.yahoo.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 Mark.Mitsules at ngc.com Fri Nov 12 07:38:29 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 08:38:29 -0500 Subject: [AccessD] OT: Outlook programming sites/info Message-ID: Sander, One of the most quoted sites I've seen on this list is probably www.slipstick.com. Mark -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Friday, November 12, 2004 8:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From James at fcidms.com Fri Nov 12 07:39:20 2004 From: James at fcidms.com (James Barash) Date: Fri, 12 Nov 2004 08:39:20 -0500 Subject: [AccessD] Unable to Open or Design Reports In-Reply-To: <15734468543.20041111183459@cactus.dk> Message-ID: <0I7200LLQJ9K5M@mta5.srv.hcvlny.cv.net> Gustav and Liz: Thanks for the suggestions. I hadn't thought of that since everything worked correctly as of last week. I'll pass it on to my client and hope that does it. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 11, 2004 12:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Unable to Open or Design Reports Hi James This sounds as if no default printer or no printer at all is installed. /gustav > I was visiting a client today who was having a problem with our system. None > of the reports would print or preview. From the database window, I was > unable to Preview or Design any of the existing reports and was unable to > create a new report, either using the Design View or the Report Wizard. I > created a blank database and also could not create any reports. Trying to > open or design did not produce any error message, but did not open a report > either. Using the Report Wizard, I got through all the prompts and after > clicking the Finished button, I got the message "Unable to Create Report" I > could create all the other types of objects: Tables, Queries, Forms, Macros > and Modules. The system was working as of last week and he assured me there > had been no changes to the computer since. Our system does work on other > computer in the same office. > The system is a single file running on the local drive. The user > does have admin rights (create, read, write, update, delete) on the local > drive. The computer is running Windows XP (SP1) and Office 2003 (SP1). I > suggested that reloading Office would be the best thing to do but that has > to be done through their IT department and could take a while. Has anyone > seen this before and have a solution or any suggestions. > Thanks, > James Barash -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Nov 12 08:04:20 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 12 Nov 2004 09:04:20 -0500 Subject: [AccessD] OT: Outlook programming sites/info In-Reply-To: <20041112130702.53053.qmail@web61103.mail.yahoo.com> Message-ID: Helen's been at that stuff for a while: http://www.helenfeddema.com/ Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, November 12, 2004 8:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Outlook programming sites/info Hi group, I need to do some outlook programming (couple of forms etc.) does anybody know some good oulook programming websites? TIA Sander --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Nov 12 08:43:31 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 12 Nov 2004 09:43:31 -0500 Subject: [AccessD] A2003: Filter Property In-Reply-To: <4194987D.4043.759244@lexacorp.com.pg> Message-ID: <20041112144330.KSEL2451.imf21aec.mail.bellsouth.net@SUSANONE> Well, who knew??????? ;) Is this the spot for Gustav's little international date breaker????? :) Susan H. Nope, Darren's an Aussie. Doing it that way gets the month and day reversed if he is using the default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work at all if he using something like "12 Nov 04" :-( From reuben at gfconsultants.com Fri Nov 12 10:04:48 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 11:04:48 -0500 Subject: [AccessD] OT - Force apps to open in same place Message-ID: I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From BBarabash at TappeConstruction.com Fri Nov 12 10:17:07 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Nov 2004 10:17:07 -0600 Subject: [AccessD] OT - Force apps to open in same place Message-ID: <100F91B31300334B89EC531C9DCB08653F5F1D@tccexch01.tappeconstruction.net> What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From adtp at touchtelindia.net Fri Nov 12 10:22:43 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 12 Nov 2004 21:52:43 +0530 Subject: [AccessD] Query - Add Recordcount Field References: Message-ID: <005201c4c8d3$ed2c3ad0$791865cb@winxp> Mark, Following alternatives could be considered, for getting running count in a query field - (a) Sub-query. (b) Domain function i.e. DCount(). (c) User defined function based upon recordset. (d) User defined function based upon sequentially incrementing global variable. Use of sub-query for running count renders the output non-updateable. If this is considered a constraint, options (b) or (c) could be tried. In all cases, it is necessary that the fields upon which running count is based, are sorted in proper sequence. The last field amongst the group of sorted fields should be the one holding unique values (so as to prevent duplicate values in running count). Option (d) needs special care in view of volatile nature of output. In a select query, it results in inconsistent display, as the calculated result keeps on changing if the user navigates over it repeatedly from. As such, its use is preferably restricted only to single pass action queries (e.g. Append or update). Two sample SQL's using sub-query approach are given at (A) and (B) below. (A) represents the simplest case where the running count is based upon only one field (named ID) having unique values, while (B) demonstrates a combination of date field (TDate) and the unique value field (ID). The samples are based upon table T_Data as the source. When running count is needed on relatively complex query (specially if it is aggregate type involving group by clause), the final query should be used as source (in place of T_Data). Regards, A.D.Tejpal -------------- (A) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.ID <= T_Data.ID) AS RunningCount FROM T_Data ORDER BY T_Data.ID; ================================= (B) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.TDate < T_Data.TDate Or (T1.TDate = T_Data.TDate And T1.ID <= T_Data.ID)) AS RunningCount FROM T_Data ORDER BY T_Data.TDate, T_Data.ID; ================================= ----- Original Message ----- From: Mitsules, Mark To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 01:59 Subject: RE: [AccessD] Query - Add Recordcount Field Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark From Mark.Mitsules at ngc.com Fri Nov 12 10:42:35 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 11:42:35 -0500 Subject: [AccessD] OT - Force apps to open in same place Message-ID: Reuben, I understand your concern, however, I will go out on a limb as a "user" and say that I frown on applications that overtly force or override "my" current settings...especially if they do not return them to their original state. Mark -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, November 12, 2004 11:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. 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 gustav at cactus.dk Fri Nov 12 10:59:49 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Nov 2004 17:59:49 +0100 Subject: [AccessD] Modules and libraries in Office In-Reply-To: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> References: <002f01c4c47f$7f204b10$e8dafea9@ColbyM6805> Message-ID: <3524593082.20041112175949@cactus.dk> Hi John Not a direct answer, I know, but these are the recommended programming roads by MS itself (one line): http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/dno2k3ta/html/Office2003OverviewDeveloperTechnologies.asp Part two is not published yet it seems ... /gustav > Date: 2004-11-07 05:08 > In Access we use MDA/Es to store libraries of reusable code. Is there an > equivalent for Word / Excel / Outlook etc (the rest of Office)? Do these > other platforms have references like we do in Access? If so, can you > reference an MDA/E to use code in it? From reuben at gfconsultants.com Fri Nov 12 11:46:17 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 12:46:17 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: Message-ID: This is strictly for my own personal use during development. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Friday, November 12, 2004 11:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Force apps to open in same place Reuben, I understand your concern, however, I will go out on a limb as a "user" and say that I frown on applications that overtly force or override "my" current settings...especially if they do not return them to their original state. Mark -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, November 12, 2004 11:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Nov 12 11:46:17 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 12 Nov 2004 12:46:17 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: <100F91B31300334B89EC531C9DCB08653F5F1D@tccexch01.tappeconstruction.net> Message-ID: It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 Mark.Mitsules at ngc.com Fri Nov 12 11:54:16 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 12 Nov 2004 12:54:16 -0500 Subject: [AccessD] Query - Add Recordcount Field Message-ID: Excellent overview A.D.Tejpal! Many thanks. Mark -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Friday, November 12, 2004 11:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query - Add Recordcount Field Mark, Following alternatives could be considered, for getting running count in a query field - (a) Sub-query. (b) Domain function i.e. DCount(). (c) User defined function based upon recordset. (d) User defined function based upon sequentially incrementing global variable. Use of sub-query for running count renders the output non-updateable. If this is considered a constraint, options (b) or (c) could be tried. In all cases, it is necessary that the fields upon which running count is based, are sorted in proper sequence. The last field amongst the group of sorted fields should be the one holding unique values (so as to prevent duplicate values in running count). Option (d) needs special care in view of volatile nature of output. In a select query, it results in inconsistent display, as the calculated result keeps on changing if the user navigates over it repeatedly from. As such, its use is preferably restricted only to single pass action queries (e.g. Append or update). Two sample SQL's using sub-query approach are given at (A) and (B) below. (A) represents the simplest case where the running count is based upon only one field (named ID) having unique values, while (B) demonstrates a combination of date field (TDate) and the unique value field (ID). The samples are based upon table T_Data as the source. When running count is needed on relatively complex query (specially if it is aggregate type involving group by clause), the final query should be used as source (in place of T_Data). Regards, A.D.Tejpal -------------- (A) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.ID <= T_Data.ID) AS RunningCount FROM T_Data ORDER BY T_Data.ID; ================================= (B) ================================= SELECT (Select Count(*) From T_Data As T1 Where T1.TDate < T_Data.TDate Or (T1.TDate = T_Data.TDate And T1.ID <= T_Data.ID)) AS RunningCount FROM T_Data ORDER BY T_Data.TDate, T_Data.ID; ================================= ----- Original Message ----- From: Mitsules, Mark To: 'Access Developers discussion and problem solving' Sent: Friday, November 12, 2004 01:59 Subject: RE: [AccessD] Query - Add Recordcount Field Yes, for each record returned by the query. In the example below, it would be fldItem. A simple example: fldItem fldName fldScore 1 Tom 90 2 Dick 95 3 Harry 93 Mark -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, November 11, 2004 1:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field You want just an incrementing number? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 1:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Query - Add Recordcount Field John, Jim, Gentlemen...we have a problem:) Both of these approaches produce the same results (probably a good thing), however the results are not what I expected. My uneducated guess is that I should have mentioned that this is for an aggregate query. So what these methods end up producing is a count of each GroupBy. Any suggestions? Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Thursday, November 11, 2004 11:35 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query - Add Recordcount Field Mark, I think your saying you want the records numbered? I use a custom function: Global glngGetLineCounter As Long Function GetLineCounter(varName As Variant) As Long glngGetLineCounter = glngGetLineCounter + 1 GetLineCounter = glngGetLineCounter End Function Which I call from the query LineNo:GetLineCounter() If you need this in a form or report though, add a control with a running sum defaulted to 1. Jim Dettman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark Sent: Thursday, November 11, 2004 10:40 AM To: [AccessD] Subject: [AccessD] Query - Add Recordcount Field Group, Someone has this at the top of their head or near their fingertips...hopefully. In a query, what is the syntax to add a running recordcount column? Thanks. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Nov 12 14:37:59 2004 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 12 Nov 2004 21:37:59 +0100 Subject: [AccessD] precursor zero Message-ID: <003001c4c8f7$804af590$f2c581d5@pedro> Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen From CMackin at quiznos.com Fri Nov 12 14:48:37 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 12 Nov 2004 13:48:37 -0700 Subject: [AccessD] precursor zero Message-ID: String & Right("0000" & CStr(ID), 4) Will take care of it. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Friday, November 12, 2004 1:38 PM To: AccessD at databaseadvisors.com Subject: [AccessD] precursor zero Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Nov 12 14:55:53 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Nov 2004 14:55:53 -0600 Subject: [AccessD] precursor zero Message-ID: <100F91B31300334B89EC531C9DCB08653F5F26@tccexch01.tappeconstruction.net> "string" & Format([ID Field Name],"0000") -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro Janssen Sent: Friday, November 12, 2004 2:38 PM To: AccessD at databaseadvisors.com Subject: [AccessD] precursor zero Hello Group, i can make an ID by placing a string and a number together with an update query. What i get then is string1 string2 string11 string100 What i would like is precursor zero's so that all number are the same length: string0001 string0002 string0011 string0100 How can i do this? Pedro Janssen -- -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From ssharkins at bellsouth.net Sat Nov 13 08:58:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Nov 2004 09:58:37 -0500 Subject: [AccessD] OT: Probably Message-ID: <20041113145836.FAVX2451.imf21aec.mail.bellsouth.net@SUSANONE> Office XP Alternative User Input Update: KB832668 The Office XP Alternative User Input Update: KB832668 updates the framework which is used to support advanced text services in Microsoft Office XP. Update for Office 2003: Alternative User Input (KB870774) The Update for Office 2003: Alternative User Input (KB870774) updates the framework which is used to support advanced text services in Microsoft Office 2003. Can someone tell me what the Alternative User Input is? Susan H. From DaveSharpe2 at cox.net Sat Nov 13 15:09:00 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Sat, 13 Nov 2004 16:09:00 -0500 Subject: [AccessD] OT: Probably References: <20041113145836.FAVX2451.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <002c01c4c9c4$ff6ec900$6ea9fe18@bcsrkeext6137> Susan http://support.microsoft.com/kb/316127 Contains the following "The Office XP Alternative User Input Update: January 24, 2002 updates the framework that is used to support advanced text services in Office XP. Examples of advanced text services include speech recognition, handwriting recognition, and East Asian keyboard input services." I hope that this helps. Dave ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Saturday, November 13, 2004 9:58 AM Subject: [AccessD] OT: Probably Office XP Alternative User Input Update: KB832668 The Office XP Alternative User Input Update: KB832668 updates the framework which is used to support advanced text services in Microsoft Office XP. Update for Office 2003: Alternative User Input (KB870774) The Update for Office 2003: Alternative User Input (KB870774) updates the framework which is used to support advanced text services in Microsoft Office 2003. Can someone tell me what the Alternative User Input is? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Nov 13 17:20:16 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 14 Nov 2004 09:20:16 +1000 Subject: [AccessD] OT: Probably In-Reply-To: <002c01c4c9c4$ff6ec900$6ea9fe18@bcsrkeext6137> Message-ID: <41972350.30452.A63CB78@lexacorp.com.pg> On 13 Nov 2004 at 16:09, Dave Sharpe wrote: > > Contains the following "The Office XP Alternative User Input Update: > January 24, 2002 updates the framework that is used to support advanced > text services in Office XP. Examples of advanced text services include > speech recognition, handwriting recognition, and East Asian keyboard > input services." > Even further OT: Another interesting "Alternative User Input" to play with is also not limited to Office XP. Check out Dasher at http://www.inference.phy.cam.ac.uk/dasher -- Stuart From ssharkins at bellsouth.net Sat Nov 13 18:04:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Nov 2004 19:04:45 -0500 Subject: [AccessD] OT: Probably In-Reply-To: <41972350.30452.A63CB78@lexacorp.com.pg> Message-ID: <20041114000445.XYQW8988.imf16aec.mail.bellsouth.net@SUSANONE> Had no idea... ;) Thanks! Susan H. Another interesting "Alternative User Input" to play with is also not limited to Office XP. Check out Dasher at http://www.inference.phy.cam.ac.uk/dasher From lists at theopg.com Thu Nov 11 14:51:22 2004 From: lists at theopg.com (MarkH) Date: Thu, 11 Nov 2004 20:51:22 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: Message-ID: <000a01c4c830$3528aca0$d30d6bd5@netboxxp> I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From jwcolby at colbyconsulting.com Sun Nov 14 07:04:50 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 14 Nov 2004 08:04:50 -0500 Subject: [AccessD] Joining Two Tables In-Reply-To: <000a01c4c830$3528aca0$d30d6bd5@netboxxp> Message-ID: <000801c4ca4a$86aecd90$e8dafea9@ColbyM6805> It is my understanding that a join breaks down to (is interpreted as) exactly that code anyway. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Thursday, November 11, 2004 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ 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 Nov 14 19:35:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 12:35:56 +1100 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: Message-ID: <200411150136.iAF1a1dQ025733@cooper.uws.edu.au> Hi Reuben I use an NVIDIA card also What you are requesting is Driver dependant - though the NVIDIA Driver manager does Allow you to select what screen you want an app to open on. Be wary though.... I had it happen once that I did some development work on a 'not centred' form Whilst I was in an NVIDIA 'wide screen' kinda setup. When the form was opened at the customers place the form open up 'off the screen'. And of course it was set to modal so I had to CTRL ALT DEL Did some very quick editing (Using the scroll bars to go 'off screen') drag the form back, edit something (I moved a label) and save the changes in the middle of the customers only screen So...bear this in mind when opening, designing and moving 'not centred' popup type forms between screens. What I do now is....all my form design work on the left screen (I have that screen as monitor 1) and all my code work (monitor 2) on the right. So it shouldn't matter when I am at my customers with 1 screen See ya - hope this helps DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Saturday, 13 November 2004 4:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 d.dick at uws.edu.au Sun Nov 14 23:24:13 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 16:24:13 +1100 Subject: [AccessD] A2003:Adding All to a List Message-ID: <200411150524.iAF5OJdQ018582@cooper.uws.edu.au> I know this has been done to death I have done it many time using my code library I have lost my libraries when my hard drive was hosed and Drew's search on the archives timed me out So... If I want the text to appear at the top of a legitimate list but it it not part of the recordset, how do I do it? EG from a combo.... Michael Stephen Peter Susan Zafir etc Many thanks Darren From stuart at lexacorp.com.pg Sun Nov 14 23:36:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 15 Nov 2004 15:36:19 +1000 Subject: [AccessD] A2003:Adding All to a List In-Reply-To: <200411150524.iAF5OJdQ018582@cooper.uws.edu.au> Message-ID: <4198CCF3.23099.10E26E7B@lexacorp.com.pg> On 15 Nov 2004 at 16:24, Darren DICK wrote: > So... > If I want the text to appear at the top of a legitimate list but it it > not > part of the recordset, how do I do it? > Use a Union query: Select "" as FirstName from tblNames UNION Select FirstName from tblNames -- Stuart From bchacc at san.rr.com Sun Nov 14 23:55:23 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 14 Nov 2004 21:55:23 -0800 Subject: [AccessD] Windows Digital Right Management Software Message-ID: <01e701c4cad7$b31a4840$6501a8c0@HAL9002> Does anybody know anything about Microsoft "Digital Right Management Software" (DRM). The Chinese distributor is suggesting it for copy protection in China. Is it good? Effective? What's the downside? Is it hard to use and manage? What problems does it create for the user? Any info will be appreciated. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com From d.dick at uws.edu.au Mon Nov 15 00:31:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Nov 2004 17:31:31 +1100 Subject: [AccessD] A2003:Adding All to a List In-Reply-To: <4198CCF3.23099.10E26E7B@lexacorp.com.pg> Message-ID: <200411150631.iAF6VbdR008361@cooper.uws.edu.au> Hi Stuart As usual - You Da Man!!!!!!!!! Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, 15 November 2004 4:36 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Adding All to a List On 15 Nov 2004 at 16:24, Darren DICK wrote: > So... > If I want the text to appear at the top of a legitimate list but > it it not part of the recordset, how do I do it? > Use a Union query: Select "" as FirstName from tblNames UNION Select FirstName from tblNames -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Nov 15 03:37:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 15 Nov 2004 09:37:54 -0000 Subject: [AccessD] Joining Two Tables In-Reply-To: <000801c4ca4a$86aecd90$e8dafea9@ColbyM6805> Message-ID: <000001c4caf6$c9626190$0e0b6bd5@netboxxp> Thanks John Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 14 November 2004 13:05 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables It is my understanding that a join breaks down to (is interpreted as) exactly that code anyway. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Thursday, November 11, 2004 3:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables I never performance tested it and only used this method in migrations etc. I'd be real interested to know what the limitations are...? Mark (the other one) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 20:45 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thanks for the suggestion. In this instance, since I'm dealing with < 10K records I wonder if efficiency would be noteworthy? Mark -----Original Message----- From: MarkH [mailto:lists at theopg.com] Sent: Thursday, November 11, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Didn't read the whole thread so sorry if this has been done... You don't need a join, you can just use criteria if you like (not necessarilly very eficient though?) E.g. "SELECT a.*, b.* FROM a, b WHERE a.col1=mid(b.col2,3)" Hth Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: 11 November 2004 13:35 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Joining Two Tables Thank you all for the comments. That is exactly what I ended up doing. But since I lack the SQL "guru" certification ;) I thought I'd put the question out there. I was thinking back to a thread a long while back regarding a method that creates a sort of temporary table within one query...or something along those lines. I didn't know if/how that method might apply to my situation. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, November 11, 2004 6:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Joining Two Tables Hi Mark and Arthur That may work but you'll be in trouble when trying to switch to design view. I would create a query for Tbl2 with a field with the expression needed to match the Tbl1.Fld1. Then use this query for Tbl1 whenever you need to join Tbl1 and Tbl2. /gustav >>I have two tables I would like to join. Tbl1.Fld1 contains a >>variable-length string, Tbl2.Fld2 contains the same variable-length >>string concatenated with a variable-length suffix. >> >>Any suggestions on how to proceed? Is there an elegant solution? >> >>Mark > At first blush I would try this: > > SELECT * FROM T1 INNER JOIN T2 ON T1.Field1 = Left(T.2.Field1, > LEN(T1.Field1)) > Arthur -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From reuben at gfconsultants.com Mon Nov 15 08:06:52 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Mon, 15 Nov 2004 09:06:52 -0500 Subject: [AccessD] OT - Force apps to open in same place In-Reply-To: <200411150136.iAF1a1dQ025733@cooper.uws.edu.au> Message-ID: Thanks, Darren. That does help. I think I'll just deal with moving forms over when needed. That two seconds won't hurt me much. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, November 14, 2004 8:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Force apps to open in same place Hi Reuben I use an NVIDIA card also What you are requesting is Driver dependant - though the NVIDIA Driver manager does Allow you to select what screen you want an app to open on. Be wary though.... I had it happen once that I did some development work on a 'not centred' form Whilst I was in an NVIDIA 'wide screen' kinda setup. When the form was opened at the customers place the form open up 'off the screen'. And of course it was set to modal so I had to CTRL ALT DEL Did some very quick editing (Using the scroll bars to go 'off screen') drag the form back, edit something (I moved a label) and save the changes in the middle of the customers only screen So...bear this in mind when opening, designing and moving 'not centred' popup type forms between screens. What I do now is....all my form design work on the left screen (I have that screen as monitor 1) and all my code work (monitor 2) on the right. So it shouldn't matter when I am at my customers with 1 screen See ya - hope this helps DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Saturday, 13 November 2004 4:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place It's an Nvidia card. I'll check out the manager software. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, November 12, 2004 11:17 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Force apps to open in same place What type of video card does it use? My Matrox G400 and my nVidia FX5200 cards both have desktop manager software that allows me to specify which screen an app starts in. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, November 12, 2004 10:05 AM To: AccessD Subject: [AccessD] OT - Force apps to open in same place I am using split screens for the first time (I use my laptop screen plus a flat panel for more space). My question is this: Is there a way to force apps, like Access, Outlook, etc., to always open on the primary monitor? It's possible to have Access on the secondary monitor and close it over there and then open Access and it will appear to be not open. I want to avoid this. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 rl_stewart at highstream.net Mon Nov 15 10:13:37 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 15 Nov 2004 10:13:37 -0600 Subject: [AccessD] Re: A2003: Filter Property In-Reply-To: <200411121341.iACDfCL18404@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041115101159.01423e30@pop3.highstream.net> But, Me.Filter = "DateOfBilling = CDate(" & Me.txtStartDate & ")" would, make that should, work with any of them. You might also want to add me.refresh on the end of the sub. Robert At 07:41 AM 11/12/2004 -0600, you wrote: >Date: Fri, 12 Nov 2004 11:03:25 +1000 >From: "Stuart McLachlan" >Subject: RE: [AccessD] A2003: Filter Property >To: Access Developers discussion and problem solving > >Message-ID: <4194987D.4043.759244 at lexacorp.com.pg> >Content-Type: text/plain; charset=US-ASCII > >On 11 Nov 2004 at 19:51, Susan Harkins wrote: > > > If the delimiters are the problem as Stuart suggests, you should be able to > > use the following: > > > > Me.Filter = "DateOfBilling = #" & Me.txtStartDate & "#)" > > > >Nope, Darren's an Aussie. > >Doing it that way gets the month and day reversed if he is using the >default short date (today is 12/11/04, not 11/12/04 to us) and doesn't work >at all if he using something like "12 Nov 04" :-( > >-- >Stuart From rfv at entelix.com Mon Nov 15 14:19:14 2004 From: rfv at entelix.com (rfv at entelix.com) Date: Mon, 15 Nov 2004 14:19:14 -0600 Subject: [AccessD] How many Access installed worldwide? Message-ID: <200411152022.iAFKMKL14695@databaseadvisors.com> Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek From Erwin.Craps at ithelps.be Mon Nov 15 14:44:05 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 15 Nov 2004 21:44:05 +0100 Subject: [AccessD] How many Access installed worldwide? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B551B@stekelbes.ithelps.local> I got a couple ones over here :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rfv at entelix.com Sent: Monday, November 15, 2004 9:19 PM To: AccessD at databaseadvisors.com Subject: [AccessD] How many Access installed worldwide? Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek -- _______________________________________________ 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 Nov 15 15:01:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 15 Nov 2004 21:01:44 -0000 Subject: [AccessD] How many Access installed worldwide? In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B551B@stekelbes.ithelps.local> Message-ID: <002201c4cb56$50741f70$b274d0d5@minster33c3r25> And I've 3 (boy this could take a while). Sorry Rudolf, we're being facetious. But the question's a bit like how many drops of water in the Pacific. Maybe MS know how many copies they have registered but that's surely the tip of the iceberg. -- 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: 15 November 2004 20:44 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] How many Access installed worldwide? > > > I got a couple ones over here :-) > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > rfv at entelix.com > Sent: Monday, November 15, 2004 9:19 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] How many Access installed worldwide? > > Hi, > Can anyobody tell me how many MS Access packages are > installed worldwide? > > Thnaks > > > Rudolf F. Vanek > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 mnptl at sonmedia.com Mon Nov 15 18:43:47 2004 From: mnptl at sonmedia.com (mnptl at sonmedia.com) Date: Mon, 15 Nov 2004 19:43:47 -0500 (EST) Subject: [AccessD] Disabling the scrolling mouse in Access 97 Message-ID: <58067.10.235.219.133.1100565827.webmail@10.235.219.133> My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark From d.dick at uws.edu.au Mon Nov 15 19:03:48 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 12:03:48 +1100 Subject: [AccessD] A2003: Design Question Message-ID: <200411160103.iAG13udQ009199@cooper.uws.edu.au> Hi Team I Have a dB that holds data for both Clients (tblClients) and Franchises (tblFranchises) The tblClients holds all the usual client detail stuff - ClientID is the PK (Autonumber) tblFranchises holds various bits of information about any particular franchise - FranchiseID is the PK (Autonumber) So essentially 2 entity groups within the dB. BUT my client does work for both the Franchises and individual Customers. In order to present both of them in a TimeBilling Screen I use a union query to 'merge' both groups into a single combo The problem is storing the PK correctly. eg say I select the 4th Franchise in the list - it has a PK of 4 Well an entry on the client side will also have a PK of 4. I am tossing up with various ways to deal with this including merging both tables into one table and just setting a flag to differentiate Clients from Franchises. Of course I can have separate fields in the tblTimeBilling for FranchiseID and for ClientID. Just not sure what would be a sleek solution :-)) I am sure this is a common type of thing - I just wanted to know some methods on how you guys deal with this sort of design question. Many thanks Darren From Mark.Porter at acsalaska.com Mon Nov 15 19:18:03 2004 From: Mark.Porter at acsalaska.com (Porter, Mark) Date: Mon, 15 Nov 2004 16:18:03 -0900 Subject: [AccessD] How many Access installed worldwide? Message-ID: <635B80FE6C7D5A409586A6A110D97D17217E62@ACSANCHOR.corp.acsalaska.com> What version? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rfv at entelix.com Sent: Monday, November 15, 2004 11:19 AM To: AccessD at databaseadvisors.com Subject: [AccessD] How many Access installed worldwide? Hi, Can anyobody tell me how many MS Access packages are installed worldwide? Thnaks Rudolf F. Vanek -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** 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 cfoust at infostatsystems.com Mon Nov 15 19:23:59 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Nov 2004 17:23:59 -0800 Subject: [AccessD] Disabling the scrolling mouse in Access 97 Message-ID: Check Lebans' site http://www.lebans.com/ Charlotte Foust -----Original Message----- From: mnptl at sonmedia.com [mailto:mnptl at sonmedia.com] Sent: Monday, November 15, 2004 4:44 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Disabling the scrolling mouse in Access 97 My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark -- _______________________________________________ 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 Nov 15 19:24:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 12:24:45 +1100 Subject: [AccessD] Disabling the scrolling mouse in Access 97 In-Reply-To: <58067.10.235.219.133.1100565827.webmail@10.235.219.133> Message-ID: <200411160124.iAG1OrdQ005494@cooper.uws.edu.au> Hi Mark Have a look at Stephen Lebans web site http://www.lebans.com/mousewheelonoff.htm Hope this helps See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of mnptl at sonmedia.com Sent: Tuesday, 16 November 2004 11:44 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Disabling the scrolling mouse in Access 97 My client is using Access 97, and we need to disable the scrolling behaviour of the mouse wheel. Does anyone know how to do this in Access '97? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Nov 15 19:24:47 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 16 Nov 2004 11:24:47 +1000 Subject: [AccessD] A2003: Design Question In-Reply-To: <200411160103.iAG13udQ009199@cooper.uws.edu.au> Message-ID: <4199E37E.31769.1522713E@lexacorp.com.pg> On 16 Nov 2004 at 12:03, Darren DICK wrote: > > BUT my client does work for both the Franchises and individual Customers. > In order to present both of them in a TimeBilling Screen I use a union query > to 'merge' both > groups into a single combo > > The problem is storing the PK correctly. eg say I select the 4th Franchise > in the list - it has a PK of 4 > Well an entry on the client side will also have a PK of 4. > > I am tossing up with various ways to deal with this including merging both > tables into one > table and just setting a flag to differentiate Clients from Franchises. > Of course I can have separate fields in the tblTimeBilling for FranchiseID > and for ClientID. > I'd probably go for a tblEntity with 3 fields: ID EntityType (Franchise or Client) EntityID You can then base your ComboBox on a query something like: Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >From tblEntities Left Join tblFranchises ....... Left Join TblClients ...... -- Stuart From d.dick at uws.edu.au Mon Nov 15 20:24:55 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 16 Nov 2004 13:24:55 +1100 Subject: [AccessD] A2003: Design Question In-Reply-To: <4199E37E.31769.1522713E@lexacorp.com.pg> Message-ID: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> Hi Stuart Thanks for the reply In your suggestion I would create a 3rd table called tblEntity - yes? How does it get populated? How would I store entries to the tblTimeBilling table. IE in the union combo how would I store that PK 4 in this case is a franchise Not a client? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, 16 November 2004 12:25 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003: Design Question On 16 Nov 2004 at 12:03, Darren DICK wrote: > > BUT my client does work for both the Franchises and individual Customers. > In order to present both of them in a TimeBilling Screen I use a union > query to 'merge' both groups into a single combo > > The problem is storing the PK correctly. eg say I select the 4th > Franchise in the list - it has a PK of 4 Well an entry on the client > side will also have a PK of 4. > > I am tossing up with various ways to deal with this including merging > both tables into one table and just setting a flag to differentiate > Clients from Franchises. > Of course I can have separate fields in the tblTimeBilling for > FranchiseID and for ClientID. > I'd probably go for a tblEntity with 3 fields: ID EntityType (Franchise or Client) EntityID You can then base your ComboBox on a query something like: Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >From tblEntities Left Join tblFranchises ....... Left Join TblClients ...... -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Nov 15 23:49:34 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 16 Nov 2004 00:49:34 -0500 Subject: [AccessD] A2003: Design Question In-Reply-To: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> References: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> Message-ID: <419994EE.4020904@rogers.com> Darren DICK wrote: >Hi Stuart >Thanks for the reply >In your suggestion I would create a 3rd table called tblEntity - yes? >How does it get populated? > >How would I store entries to the tblTimeBilling table. >IE in the union combo how would I store that PK 4 in this case is a >franchise >Not a client? > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Tuesday, 16 November 2004 12:25 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003: Design Question > >On 16 Nov 2004 at 12:03, Darren DICK wrote: > > > >> >>BUT my client does work for both the Franchises and individual Customers. >>In order to present both of them in a TimeBilling Screen I use a union >>query to 'merge' both groups into a single combo >> >>The problem is storing the PK correctly. eg say I select the 4th >>Franchise in the list - it has a PK of 4 Well an entry on the client >>side will also have a PK of 4. >> >>I am tossing up with various ways to deal with this including merging >>both tables into one table and just setting a flag to differentiate >>Clients from Franchises. >>Of course I can have separate fields in the tblTimeBilling for >>FranchiseID and for ClientID. >> >> >> > >I'd probably go for a tblEntity with 3 fields: > >ID >EntityType (Franchise or Client) >EntityID > >You can then base your ComboBox on a query something like: > >Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName >>From tblEntities Left Join tblFranchises ....... Left Join TblClients > ...... > > > > >-- >Stuart > > > > Is there a profitable reason to store these entities in different tables? There may well be, but in your problem description it is not apparent. If my hunch is correct, then you can put both Franchises and Customers in the same table, adding a flag to indicate which. There is the possibility however that an entity is both a Customer and a Franchise, in which case a boolean won't do, so replace it with a numeric. Up side: much simpler combo selectors. Down side: selecting only one or the other type demands hitting the whole table (unless the BE is SQL). HTH, Arthur From roz.clarke at donnslaw.co.uk Tue Nov 16 05:25:14 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 16 Nov 2004 11:25:14 -0000 Subject: [AccessD] cross-posted - sql dba services Message-ID: <61F915314798D311A2F800A0C9C8318805CED7A8@dibble.observatory.donnslaw.co.uk> Hi all A couple of years ago I was recruiting for someone with SQL Server DBA skills, and someone from accessd put his company forward to provide those skills on a consultancy basis if I had trouble recruiting. At that time I found someone who was very good, but as good people do, he has now moved onwards & upwards to greater things. We are struggling to replace him; is anyone on the list currently providing SQL DBA consultancy in the North West of England? We have some potential projects coming up which are beyond our in-house skill set, and it would be nice to know if there is an alternative to hiring someone permanent. Many thanks Roz -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From joeget at vgernet.net Tue Nov 16 05:47:18 2004 From: joeget at vgernet.net (John Eget) Date: Tue, 16 Nov 2004 06:47:18 -0500 Subject: [AccessD] developer CD's for 2003 Message-ID: <000f01c4cbd2$0a192fd0$8ec2f63f@Desktop> I want to deploy an access 2003 database and the customer is willing to purchase the development software. I have the Office Development XP 7 CD set, but cannot find a similar product for Access 2003. Does anyone know the new name? Thanks John Eget From adtp at touchtelindia.net Tue Nov 16 06:13:38 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 16 Nov 2004 17:43:38 +0530 Subject: [AccessD] Alternating background color in continuous forms? References: <157240-220041131033556327@christopherhawkins.com> Message-ID: <008801c4cbd5$ebb05150$e41865cb@winxp> Christopher, You can see my sample db named HighLightDatasheetRows at Rogers Access Library (other developers section). Link - http://www.rogersaccesslibrary.com This db demonstrates two styles of highlighting - (i) Current Row and (ii) Alternate Rows. Some interesting features are - (a) Anchor Row - In both alternatives, user can pinpoint any row as an anchor row (if desired), by double clicking on it. The anchor row gets highlighted in a special color and continues in this state, till some other row is pinpointed as the new anchor row. If any existing anchor row is to be put back to normal (without pinpointing a new one), simply double click it again. (b) - In case of alternate row highlighting, the form, on opening, has color on odd rows. For replacing it with color on even rows, simply double click on any even numbered row. For reverting back to color on odd numbered rows, double click on any odd numbered row. Note - The technique used is completely non-obtrusive. It does not need any special field (e.g. Yes/No or counter etc) to be added to the source table. No updating or editing of any bound control is involved. No label or unbound text box is used. Only requirement is that the source table should have a field holding unique values. You might like to adapt the underlying approach suitably for your specific needs. (The arrangement demonstrated for datasheets is applicable to continuous forms as well). Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Christopher Hawkins To: accessd at databaseadvisors.com Sent: Wednesday, November 10, 2004 09:05 Subject: [AccessD] Alternating background color in continuous forms? Greetings, all! I want to do something kind of fun. I am trying to figure out how to do alternating background colors in a continuous form. I was looking at conditional formatting in Access 2002, but am not sure how to work out an expression that will do the trick. I am also looking a doing it programmatically, but I think I'd have to do some heavy subclassing, which isn't worth the work just for eye candy. Surely someone must have done this before. Can anyone either offer sugestons on how to figure it out, or post actual code? I'll be sure to give proper credit when it's time to submit the results to the UI Hall of Fame. ;) -Christopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From jmoss111 at bellsouth.net Tue Nov 16 07:22:19 2004 From: jmoss111 at bellsouth.net (James Moss) Date: Tue, 16 Nov 2004 07:22:19 -0600 Subject: [AccessD] developer CD's for 2003 In-Reply-To: <000f01c4cbd2$0a192fd0$8ec2f63f@Desktop> Message-ID: <20041116132203.CBQZ19872.imf17aec.mail.bellsouth.net@jmoss3> John, You will be looking for Microsoft Visual Studio Tools for Office 2003. I just purchased the upgrade at Amazon for $179.99. You don't have to have visual studio to use it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Eget Sent: Tuesday, November 16, 2004 5:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] developer CD's for 2003 I want to deploy an access 2003 database and the customer is willing to purchase the development software. I have the Office Development XP 7 CD set, but cannot find a similar product for Access 2003. Does anyone know the new name? Thanks John Eget -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Nov 16 08:39:20 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 Nov 2004 14:39:20 +0000 Subject: [AccessD] A2003: Design Question Message-ID: Darren, I've done something similar in the past...not sure if this will help...but...if you are using a union, your union knows where it is getting the data. Why not create a field(Entity) in the union that differentiates the data. Here is an example. SELECT tblClient.PK, "Client" AS Entity, tblClient.Data, tblClient.MoreData FROM tblClient ORDER BY tblClient.PK, "Client" WITH OWNERACCESS OPTION; UNION SELECT tblFranchise.PK,"Franchise" AS Entity, tblFranchise.Data, tblFranchise.MoreData FROM tblFranchise WITH OWNERACCESS OPTION; Hope this helps. Mark A. Matte >From: "Darren DICK" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] A2003: Design Question >Date: Tue, 16 Nov 2004 13:24:55 +1100 > >Hi Stuart >Thanks for the reply >In your suggestion I would create a 3rd table called tblEntity - yes? >How does it get populated? > >How would I store entries to the tblTimeBilling table. >IE in the union combo how would I store that PK 4 in this case is a >franchise >Not a client? > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: Tuesday, 16 November 2004 12:25 PM >To: Access Developers discussion and problemsolving >Subject: Re: [AccessD] A2003: Design Question > >On 16 Nov 2004 at 12:03, Darren DICK wrote: > > > > > BUT my client does work for both the Franchises and individual >Customers. > > In order to present both of them in a TimeBilling Screen I use a union > > query to 'merge' both groups into a single combo > > > > The problem is storing the PK correctly. eg say I select the 4th > > Franchise in the list - it has a PK of 4 Well an entry on the client > > side will also have a PK of 4. > > > > I am tossing up with various ways to deal with this including merging > > both tables into one table and just setting a flag to differentiate > > Clients from Franchises. > > Of course I can have separate fields in the tblTimeBilling for > > FranchiseID and for ClientID. > > > >I'd probably go for a tblEntity with 3 fields: > >ID >EntityType (Franchise or Client) >EntityID > >You can then base your ComboBox on a query something like: > >Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as EntityName > >From tblEntities Left Join tblFranchises ....... Left Join TblClients > ...... > > > > >-- >Stuart > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 16 08:59:14 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 09:59:14 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98C@DISABILITYINS01> I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy From Patricia.O'Connor at dfa.state.ny.us Tue Nov 16 09:28:49 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Tue, 16 Nov 2004 10:28:49 -0500 Subject: [AccessD] ODBC against Oracle partitioned db Message-ID: Hi all When I use the Oracle ODBC driver against an ORACLE un-partitioned table from Access (either passthru or gui), I have not problem. Data comes back can scroll through 1-30+K records no problem. When I use same driver against an Oracle partitioned table from access, I get temporary freeze ups when scrolling through records even scrolling from column 1 to say col 10 on screen. It doesn't matter how many records in set - scroll down 3-6 records - stop. Sometimes the stall can be 2-5 minutes. Doesn't matter if it is the only thing running on computer. I do not have this problem with an unpartioned set. I waste a good amount of time waiting for access to let me back in. Has anyone run into this and is there a workaround or setting I need to change in the driver configuration. My machine is Win2k, Access2k, Oracle10 Thanks in advance Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** From accessd at shaw.ca Tue Nov 16 09:55:54 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 07:55:54 -0800 Subject: [AccessD] What happens to the recordset? In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF98C@DISABILITYINS01> Message-ID: Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 10:33:17 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 11:33:17 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98D@DISABILITYINS01> Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy From cfoust at infostatsystems.com Tue Nov 16 11:01:14 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 Nov 2004 09:01:14 -0800 Subject: [AccessD] What happens to the recordset? Message-ID: John, I believe the recordset generated in passing as you did it, goes out of scope with the database object it was created on. You haven't instantiated the recordset object, so it has no separate existence. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Tue Nov 16 11:08:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 16 Nov 2004 11:08:28 -0600 Subject: [AccessD] What happens to the recordset? Message-ID: <100F91B31300334B89EC531C9DCB08653F5F62@tccexch01.tappeconstruction.net> John, The Database object instantiates a Recordset to return the field value for you. Since the Recordset instance is not assigned to a variable, it is instantly out of scope and VBA's garbage collection will automatically destroy and cleanup its instance. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -------------------------------------------------------------------------------------------------------------------- The information in this email may vileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 dispec.com Tue Nov 16 11:12:54 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 12:12:54 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98E@DISABILITYINS01> Precisely, but I am dimming the db object in the form header and setting it in the form's OnOpen to save the time of doing that in OnCurrent. Thus it never goes out of scope till the form closes (set = nothing in OnClose). John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, November 16, 2004 12:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? John, I believe the recordset generated in passing as you did it, goes out of scope with the database object it was created on. You haven't instantiated the recordset object, so it has no separate existence. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 16 11:26:25 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 12:26:25 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF98F@DISABILITYINS01> IOW similar to a function which returns a variable, when the value returned by that function is not stored, the returned value is destroyed. Makes sense. Of course "VBA's garbage collection will automatically destroy and cleanup its instance" is enough to give me pause... John W. Colby The DIS Database Guy -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, November 16, 2004 12:08 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? John, The Database object instantiates a Recordset to return the field value for you. Since the Recordset instance is not assigned to a variable, it is instantly out of scope and VBA's garbage collection will automatically destroy and cleanup its instance. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy ---------------------------------------------------------------------------- ---------------------------------------- The information in this email may vileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. 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. This footer also confirms that this email message has been scanned for the presence of computer viruses.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 John.Clark at niagaracounty.com Tue Nov 16 12:30:59 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 16 Nov 2004 13:30:59 -0500 Subject: [AccessD] duplicates question * can't find in archives Message-ID: I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." From accessd at shaw.ca Tue Nov 16 12:48:47 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 10:48:47 -0800 Subject: [AccessD] What happens to the recordset? In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF98D@DISABILITYINS01> Message-ID: Hi John: Scary...I guess they have not been audited yet. To my understanding only cash-sales do not officially require a invoice number but all sales must have an internal audit number. Even deleted or destroyed transactions must be saved or archived. Of course the USA IRS may not be as ruthless..? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] What happens to the recordset? Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 12:59:14 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 13:59:14 -0500 Subject: [AccessD] duplicates question * can't find in archives Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF990@DISABILITYINS01> You can but... the probability of dirty data is 100%. IOW, the probability that they mis-spelled things they were typing in over and over will make the process of normalization somewhat more painful than dentistry sans Novocain. If you still want to, say so and I will provide info on the "how to". John W. Colby The DIS Database Guy -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Tuesday, November 16, 2004 1:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] duplicates question * can't find in archives I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Tue Nov 16 13:08:35 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 16 Nov 2004 13:08:35 -0600 Subject: [AccessD] duplicates question * can't find in archives Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068CC7@karta-exc-int.Karta.com> My first thought: is to duplicate the student table and rename it to tbl_stndata. Change the old PK to a FK. Add a new PK. Run a duplicate query on the student data table, change the FK to one of those showing. After that's done, then delete the fields no longer needed. Delete all the records duplicated/deleted from the Student table. For example, if records 24, 125, 156 were referencing the same student. The records 125 and 156 could be deleted in the student table and the FK changed to 24 in the student data table. Once both tables have been modified a relationship could be established. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Tuesday, November 16, 2004 12:31 PM To: accessd at databaseadvisors.com Subject: [AccessD] duplicates question * can't find in archives I have been searching archives, but I can't find this yet... I am rewriting a DB that was originally done on a Unix box. I have imported their data and I am trying to make it fit my scheme. Their way (the old way) was to enter all information again and again and again. This DB is tracking residents going to school out of district (I guess there is some reimbursement from home county) and each semester they enter SSN, Name, School, etc.. I am making the student screen so that once the SSN, Name, & Address is entered, the rest is entered in a subform. So I think I need to take the current table and break it down into two tables. I will have to rid the student table of all dups and somehow link the other table...the new tbl_stntdata table...to the tblStudent table. How do I get rid of all the dups? Or can I? Maybe I'll just tell them that they'll have to go "day forward." -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Tue Nov 16 13:10:12 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 14:10:12 -0500 Subject: [AccessD] What happens to the recordset? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF991@DISABILITYINS01> >Of course the USA IRS may not be as ruthless LOL. The IRS is indeed known for being ruthless... John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 1:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: Scary...I guess they have not been audited yet. To my understanding only cash-sales do not officially require a invoice number but all sales must have an internal audit number. Even deleted or destroyed transactions must be saved or archived. Of course the USA IRS may not be as ruthless..? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] What happens to the recordset? Actually I am accessing related data in another table entirely (child). I know about the recordsetclone. What I am doing is... DIS has people / companies invoice them where the invoice does not have an invoice number. If there is an invoice number, we put it in the memo field of the generated check (out in Quickbooks). If there is no invoice number provided, we create one with a DISXXX where XXX is just an incrementing number. The issue is that the idiots that don't provide an invoice number call us up complaining that they don't know what the check is for. So.... The invoice is for a set of related expenses (for a given claim). Since the expense is child to the Invoice (a line item of the Invoice), I want to go get the first expense (line item) and copy the description into a field up in the invoice. That description will now be printed on the check memo field so that they at least can go looking for the expense description (they provide us) and try to cut down on the calls from idiots. It is incredible to me that a company mails an invoice without an invoice number. HELLO!!! ANYONE HOME OUT THERE? And then they complain when they can't figure out what the payment is for. The stupids are ganging up on us! John W. Colby The DIS Database Guy -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Tuesday, November 16, 2004 10:56 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] What happens to the recordset? Hi John: There is a default recordset created when a form is opened and can be used in all sorts of ways. When a bound form is opened the recordset is pre-filled. You can access and use it like: Dim rs as Object Set rs = Me.Recordset.Clone rs.FindFirst "[ContractNumber] = '" & Me![cmbFindContractNumber] & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark When the form is closed both of the recordsets are automatically closed as a clone can not exist without it's 'original'. Your code is just another way of accessing it. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Tuesday, November 16, 2004 6:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] What happens to the recordset? I learned a long time ago that you could retrieve a value from a single record recordset using syntax like: strInvAlt = db.OpenRecordset(strSQL)!TopExpense where you don't dim a recordset, you just opened the recordset using db.openrecordset() and then referenced a field of the recordset with the !SomeField syntax. My question is, the recordset itself is never assigned to a dimmed recordset object. Furthermore there is no db.CloseRecordset() syntax. Does the recordset just stay open until the database object itself is closed or is used to open a different recordset? I have a situation where I would dim a database object in the form header and set that database object in OnOpen (to save the time it takes to Set DB), then use this syntax to retrieve a value in OnCurrent. I don't want the recordset hanging out there though. In thinking this through it seems that if the db is not dimmed / set each time in the OnCurrent then I should NOT use this syntax, but rather dim / set a recordset object as well in the form header / OnOpen and then set the recordset object in the OnCurrent, grab the field value and explicitly close the recordset (but NOT set the recordset object = nothing) Did that make any sense? Thoughts on the subject? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 16 13:50:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 16 Nov 2004 13:50:41 -0600 Subject: [AccessD] Re: A2003: Design Question In-Reply-To: <200411161801.iAGI1FL01389@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041116134552.013eceb0@pop3.highstream.net> The "sleek" solution is to design the database correctly. :-) tblParty PartyID Autonumber (pk) PartyFullName PartyFirstName PartyMiddleName PartyLastName etc..... If a client can also be a franchise, then you would need a table to break out the PartyType. tblPartyType PartyTypeID Autonumber (PK) PartyID long integer (fk) PartyType text(20) Otherwise, add PartyType to tblParty. By doing this, you can populate the TimeBilling table with which ever and never worry about it. Robert At 12:01 PM 11/16/2004 -0600, you wrote: >Date: Tue, 16 Nov 2004 12:03:48 +1100 >From: "Darren DICK" >Subject: [AccessD] A2003: Design Question >To: "'Access Developers discussion and problem solving'" > >Message-ID: <200411160103.iAG13udQ009199 at cooper.uws.edu.au> >Content-Type: text/plain; charset="us-ascii" > >Hi Team >I Have a dB that holds data for both Clients (tblClients) and Franchises >(tblFranchises) > >The tblClients holds all the usual client detail stuff - ClientID is the PK >(Autonumber) >tblFranchises holds various bits of information about any particular >franchise - FranchiseID is the PK (Autonumber) > >So essentially 2 entity groups within the dB. > >BUT my client does work for both the Franchises and individual Customers. >In order to present both of them in a TimeBilling Screen I use a union query >to 'merge' both >groups into a single combo > >The problem is storing the PK correctly. eg say I select the 4th Franchise >in the list - it has a PK of 4 >Well an entry on the client side will also have a PK of 4. > >I am tossing up with various ways to deal with this including merging both >tables into one >table and just setting a flag to differentiate Clients from Franchises. >Of course I can have separate fields in the tblTimeBilling for FranchiseID >and for ClientID. > >Just not sure what would be a sleek solution :-)) > >I am sure this is a common type of thing - I just wanted to know some >methods on >how you guys deal with this sort of design question. > >Many thanks > >Darren > From JColby at dispec.com Tue Nov 16 13:53:40 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 16 Nov 2004 14:53:40 -0500 Subject: [AccessD] Setting the LinkMaster/Child field Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF992@DISABILITYINS01> In code I am attempting to set the LinkChildFields and LinkMasterFields properties of the subform control. I get a runtime error 2101 "The setting you entered isn't valid for this property" even though if I go back and look at the property it is set to the value I placed in it. Has anyone encountered this? It appears that this is a string property (text) which is interpreted by the control at subform load time. John W. Colby The DIS Database Guy From rl_stewart at highstream.net Tue Nov 16 13:55:59 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 16 Nov 2004 13:55:59 -0600 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: <200411161801.iAGI1FL01389@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> As you can see, Access and the ODBC driver has trouble with a partioned table. Use Toad or something like it for the type of things you would do in running queries and viewing data. Since it is written for Oracle, it plays with it better. Robert At 12:01 PM 11/16/2004 -0600, you wrote: >Date: Tue, 16 Nov 2004 10:28:49 -0500 >From: "O'Connor, Patricia \(OTDA\)" > >Subject: [AccessD] ODBC against Oracle partitioned db >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi all > >When I use the Oracle ODBC driver against an ORACLE un-partitioned table >from Access (either passthru or gui), I have not problem. Data comes >back can scroll through 1-30+K records no problem. > >When I use same driver against an Oracle partitioned table from access, >I get temporary freeze ups when scrolling through records even scrolling >from column 1 to say col 10 on screen. It doesn't matter how many >records in set - scroll down 3-6 records - stop. Sometimes the stall can >be 2-5 minutes. > >Doesn't matter if it is the only thing running on computer. I do not >have this problem with an unpartioned set. I waste a good amount of >time waiting for access to let me back in. > >Has anyone run into this and is there a workaround or setting I need to >change in the driver configuration. My machine is Win2k, Access2k, >Oracle10 > >Thanks in advance >Patti From cfoust at infostatsystems.com Tue Nov 16 16:10:05 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 Nov 2004 14:10:05 -0800 Subject: [AccessD] Setting the LinkMaster/Child field Message-ID: Yes, I have. I found that this tends to happen when there is already a string in the property, so I got around it by testing for an existing string. Also, be careful what event you're trying to use to set the property. Don't try to set the links in the Open event of the parent form, although you can set the subform object there. You can set both in the Load event of the form, however. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Tuesday, November 16, 2004 11:54 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Setting the LinkMaster/Child field In code I am attempting to set the LinkChildFields and LinkMasterFields properties of the subform control. I get a runtime error 2101 "The setting you entered isn't valid for this property" even though if I go back and look at the property it is set to the value I placed in it. Has anyone encountered this? It appears that this is a string property (text) which is interpreted by the control at subform load time. John W. Colby The DIS Database Guy -- _______________________________________________ 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 Nov 16 22:03:08 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 17 Nov 2004 15:03:08 +1100 Subject: [AccessD] A2003:Test Voracity of URLS Message-ID: <200411170403.iAH43JdQ023690@cooper.uws.edu.au> Hello all I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. I know I can ping http://somewebsite.someserver.com.au and get a result but how would I capture the ping 'reply' from DOS to a table? Or...if any of you already have a method they would like to share them please let me know Make sense?? See ya Darren From stuart at lexacorp.com.pg Wed Nov 17 00:04:51 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 17 Nov 2004 16:04:51 +1000 Subject: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <200411170403.iAH43JdQ023690@cooper.uws.edu.au> Message-ID: <419B76A3.10791.1B493706@lexacorp.com.pg> On 17 Nov 2004 at 15:03, Darren DICK wrote: > > So...Is there a way I can type in say...http://somewebsite.someserver.com.au > and return "true" if the site exists or "false" if the site does not exist. > > I know I can ping http://somewebsite.someserver.com.au > and get a result > but how would I capture the ping 'reply' from DOS to a table? > > Or...if any of you already have a method they would like to share them > please let me know > Are they all domains or are some of them links to pages? If the latter, you need to test whether the domain is valid (using DNS lookup) and also test whether a link valid is valid (ie look for 404 messages in response to HTTP requests). In other words you will have to write your own HTTP engine :-( That will still not detect links that point to "parked" domains (take a look at http://www.airniugini.com as an example of a parked domain) -- Stuart From Paul.Rogers at SummitMedia.co.uk Wed Nov 17 03:29:12 2004 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Wed, 17 Nov 2004 09:29:12 -0000 Subject: [AccessD] IMESentenceMode gremlin Message-ID: A slight change to a cmd button on a form has Access offering a fault, 'You entered an expression that has an invalid reference to the property IMESentenceMode'. The debug highlight is of an unrelated, unchanged piece of code. Anyone been here, please, and answered this seemingly strange error. Cheers paul From Gustav at cactus.dk Wed Nov 17 03:35:40 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Nov 2004 10:35:40 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From actebs at actebs.com.au Wed Nov 17 04:57:23 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 17 Nov 2004 21:57:23 +1100 Subject: [AccessD] Cool Date Picker Message-ID: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Guys, I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... Thanx Vlad From Erwin.Craps at ithelps.be Wed Nov 17 06:29:25 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 17 Nov 2004 13:29:25 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> Seeing this, I wunder if there is someone who has some code (and wants to share it) to check all hyperlinks in the favorites of IE to see if the page/website still exists? Beeing on the internet for probably about 10 years now got me a lot of favorites that are aged and no longer exists... I like to clean up (sometimes). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, November 17, 2004 10:36 AM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Wed Nov 17 07:47:20 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 17 Nov 2004 08:47:20 -0500 Subject: [AccessD] Cool Date Picker In-Reply-To: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: <001801c4ccab$f62377d0$0200a8c0@COA3> http://lebans.com/monthcalendar.htm -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS Sent: Wednesday, November 17, 2004 5:57 AM To: Access Group (E-mail) Subject: [AccessD] Cool Date Picker Guys, I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... Thanx Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Wed Nov 17 07:49:14 2004 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 17 Nov 2004 14:49:14 +0100 Subject: [AccessD] Cool Date Picker References: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: <005601c4ccac$41dc14c0$0100a8c0@razvoj> See Lyle Fairfield's date_picker.zip on http://ffdba.com/newIndex.htm Ervin ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: 17 November, 2004 11:57 AM Subject: [AccessD] Cool Date Picker > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > 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 Nov 17 08:16:33 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 17 Nov 2004 09:16:33 -0500 Subject: [AccessD] Cool Date Picker Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A27D2@xlivmbx21.aig.com> Try Drew's demo at http://www.mvps.org/access/forms/frm0050.htm Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS > Sent: Wednesday, November 17, 2004 5:57 AM > To: Access Group \(E-mail\) > Subject: [AccessD] Cool Date Picker > > Guys, > > I remember ages ago someone had developed a really cool date picker that > did not require an ActiveX control. I had it in my favourites and have > since accidentally lost all my favourites after a recent machine format > **Don't you hate that** : (. If someone could post the link it would be > much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Nov 17 08:45:41 2004 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 17 Nov 2004 08:45:41 -0600 Subject: [AccessD] Cool Date Picker In-Reply-To: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> References: <2025BB6F17FCB54791F23CD5055833280886D7@starfleet.unknown.local> Message-ID: That would probably be Drew's Mini Calendar I would guess. http://www.wolfwares.com/Access/microsoft_access.htm On Wed, 17 Nov 2004 21:57:23 +1100, ACTEBS wrote: > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Wed Nov 17 10:43:39 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Nov 2004 08:43:39 -0800 Subject: [AccessD] IMESentenceMode gremlin Message-ID: Are you working with Windows CE? Charlotte Foust -----Original Message----- From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] Sent: Wednesday, November 17, 2004 1:29 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IMESentenceMode gremlin A slight change to a cmd button on a form has Access offering a fault, 'You entered an expression that has an invalid reference to the property IMESentenceMode'. The debug highlight is of an unrelated, unchanged piece of code. Anyone been here, please, and answered this seemingly strange error. Cheers paul -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjewett at bayplace.com Wed Nov 17 11:51:24 2004 From: pjewett at bayplace.com (Phil Jewett) Date: Wed, 17 Nov 2004 09:51:24 -0800 Subject: [AccessD] Objects won't close after binding a form Message-ID: I had an unbound form with a handful of subforms that was working fine - nothing fancy. All the other forms in the mdb are regular bound forms and they work fine. I then bound the unbound form to a table and added a few fields. The form worked fine, except that the form won't close - the Close button does nothing. The form does not hang - it just won't close. If I try to switch to design mode, I get the error message: You can't switch to a different view at this time. Code was executing when you tried to switch views. If I then open up any other object (form, table) the Close buttons on them don't work either! But if I hit the Close button on the database window, the other windows (not the database window) will then close - one at a time, including the problem form. Very odd. If I unbind the form, the problem sometimes, but not always, goes away. Sometimes the form won't even close from design view. I've tried backups, exporting the objects to a blank mdb, compacting, etc. The problem is wonderfully reproduceable! I suppose I can just stay with the unbound form, but I hate to build a system with a suspect mdb. Using Access 2000 SP3 with SQL Server 2000. Phil Jewett From martyconnelly at shaw.ca Wed Nov 17 14:11:14 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 12:11:14 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> Message-ID: <419BB062.40007@shaw.ca> I have some really rough code written for Win 95, let me see if I can upgraded it but just grab all the ".url" files in the sub directories below that contain your favourites in win xp or win 2000 C:\Documents and Settings\usename\Favorites then pass your .url filename to this routine to drag out the http address Then pass http url string to xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim strLine As String 'grab the folder already so just get FileName 'Set oFolder = FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) Set oText = oFile.OpenAsTextStream Do strLine = oText.ReadLine 'contains [InternetShortcut] Loop Until strLine = "[InternetShortcut]" strLine = oText.ReadLine 'should contains URL= oText.Close ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access Write As #1 ' Save the file. 'Open FileNaam For Binary Access Read As #1 ' Read the file. ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text 'Get #1, , VarBuf Debug.Print "**" & strLine & "**" ' Close #1 ' MsgBox "URL sucessfully added to Favorites!", vbInformation GetHTTPfromURL = strLine End Function Erwin Craps - IT Helps wrote: >Seeing this, I wunder if there is someone who has some code (and wants >to share it) to check all hyperlinks in the favorites of IE to see if >the page/website still exists? > >Beeing on the internet for probably about 10 years now got me a lot of >favorites that are aged and no longer exists... > >I like to clean up (sometimes). > >Erwin > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, November 17, 2004 10:36 AM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >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 DWUTKA at marlow.com Wed Nov 17 10:43:28 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 17 Nov 2004 10:43:28 -0600 Subject: [AccessD] Cool Date Picker Message-ID: <123701F54509D9119A4F00D0B747349016D0A2@main2.marlow.com> Actually the last 'finished' version is on my website. http://www.wolfwares.com Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Wednesday, November 17, 2004 8:17 AM To: 'Access Developers discussion and problem solving'; 'ACTEBS' Subject: RE: [AccessD] Cool Date Picker Try Drew's demo at http://www.mvps.org/access/forms/frm0050.htm Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of ACTEBS > Sent: Wednesday, November 17, 2004 5:57 AM > To: Access Group \(E-mail\) > Subject: [AccessD] Cool Date Picker > > Guys, > > I remember ages ago someone had developed a really cool date picker that > did not require an ActiveX control. I had it in my favourites and have > since accidentally lost all my favourites after a recent machine format > **Don't you hate that** : (. If someone could post the link it would be > much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Nov 17 10:17:24 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 17 Nov 2004 11:17:24 -0500 Subject: [AccessD] A2003: Design Question In-Reply-To: <419994EE.4020904@rogers.com> References: <200411160225.iAG2P4dQ020224@cooper.uws.edu.au> <419994EE.4020904@rogers.com> Message-ID: <419B7994.1030907@rogers.com> Arthur Fuller wrote: > Darren DICK wrote: > >> Hi Stuart >> Thanks for the reply >> In your suggestion I would create a 3rd table called tblEntity - yes? >> How does it get populated? >> >> How would I store entries to the tblTimeBilling table. >> IE in the union combo how would I store that PK 4 in this case is a >> franchise >> Not a client? >> >> Many thanks >> >> Darren >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Tuesday, 16 November 2004 12:25 PM >> To: Access Developers discussion and problemsolving >> Subject: Re: [AccessD] A2003: Design Question >> >> On 16 Nov 2004 at 12:03, Darren DICK wrote: >> >> >> >>> >>> BUT my client does work for both the Franchises and individual >>> Customers. In order to present both of them in a TimeBilling Screen >>> I use a union query to 'merge' both groups into a single combo >>> >>> The problem is storing the PK correctly. eg say I select the 4th >>> Franchise in the list - it has a PK of 4 Well an entry on the client >>> side will also have a PK of 4. >>> >>> I am tossing up with various ways to deal with this including >>> merging both tables into one table and just setting a flag to >>> differentiate Clients from Franchises. >>> Of course I can have separate fields in the tblTimeBilling for >>> FranchiseID and for ClientID. >>> >>> >> >> >> I'd probably go for a tblEntity with 3 fields: >> >> ID >> EntityType (Franchise or Client) >> EntityID >> >> You can then base your ComboBox on a query something like: >> >> Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as >> EntityName >> >>> From tblEntities Left Join tblFranchises ....... Left Join TblClients >> >> ...... >> >> >> >> >> -- >> Stuart >> >> >> >> > Is there a profitable reason to store these entities in different > tables? There may well be, but in your problem description it is not > apparent. If my hunch is correct, then you can put both Franchises and > Customers in the same table, adding a flag to indicate which. There is > the possibility however that an entity is both a Customer and a > Franchise, in which case a boolean won't do, so replace it with a > numeric. > > Up side: much simpler combo selectors. > Down side: selecting only one or the other type demands hitting the > whole table (unless the BE is SQL). > > HTH, > Arthur SELECT EntityID, EntityName, IIF(EntityType="C", "Customer","Franchise") AS Type FROM tblEntities ORDER BY EntityName You could ORDER BY EntityType first to gather them into two groups. From Subscriptions at servicexp.com Wed Nov 17 16:01:19 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 17 Nov 2004 17:01:19 -0500 Subject: [AccessD] Cool Date Picker In-Reply-To: <005601c4ccac$41dc14c0$0100a8c0@razvoj> Message-ID: I can attest to Lyle's date_picker. It's rock solid and extremely easy to use. Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza Sent: Wednesday, November 17, 2004 8:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cool Date Picker See Lyle Fairfield's date_picker.zip on http://ffdba.com/newIndex.htm Ervin ----- Original Message ----- From: "ACTEBS" To: "Access Group (E-mail)" Sent: 17 November, 2004 11:57 AM Subject: [AccessD] Cool Date Picker > Guys, > > I remember ages ago someone had developed a really cool date picker that did not require an ActiveX control. I had it in my favourites and have since accidentally lost all my favourites after a recent machine format **Don't you hate that** : (. If someone could post the link it would be much appreciated... > > Thanx > Vlad > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 17 16:12:29 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 09:12:29 +1100 Subject: [AccessD] A2003: Design Question In-Reply-To: <419B7994.1030907@rogers.com> Message-ID: <200411172212.iAHMCcdQ022664@cooper.uws.edu.au> Thanks Arthur and Stuart et al who replied I combined the tables and set a flag in each to dictate their Entity Type Simple solution solved everything Many thanks See y'all Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, 18 November 2004 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003: Design Question Arthur Fuller wrote: > Darren DICK wrote: > >> Hi Stuart >> Thanks for the reply >> In your suggestion I would create a 3rd table called tblEntity - yes? >> How does it get populated? >> >> How would I store entries to the tblTimeBilling table. >> IE in the union combo how would I store that PK 4 in this case is a >> franchise Not a client? >> >> Many thanks >> >> Darren >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >> McLachlan >> Sent: Tuesday, 16 November 2004 12:25 PM >> To: Access Developers discussion and problemsolving >> Subject: Re: [AccessD] A2003: Design Question >> >> On 16 Nov 2004 at 12:03, Darren DICK wrote: >> >> >> >>> >>> BUT my client does work for both the Franchises and individual >>> Customers. In order to present both of them in a TimeBilling Screen >>> I use a union query to 'merge' both groups into a single combo >>> >>> The problem is storing the PK correctly. eg say I select the 4th >>> Franchise in the list - it has a PK of 4 Well an entry on the client >>> side will also have a PK of 4. >>> >>> I am tossing up with various ways to deal with this including >>> merging both tables into one table and just setting a flag to >>> differentiate Clients from Franchises. >>> Of course I can have separate fields in the tblTimeBilling for >>> FranchiseID and for ClientID. >>> >>> >> >> >> I'd probably go for a tblEntity with 3 fields: >> >> ID >> EntityType (Franchise or Client) >> EntityID >> >> You can then base your ComboBox on a query something like: >> >> Select ID , IIF(EntityType = "F", FranchiseName,ClientName) as >> EntityName >> >>> From tblEntities Left Join tblFranchises ....... Left Join >>> TblClients >> >> ...... >> >> >> >> >> -- >> Stuart >> >> >> >> > Is there a profitable reason to store these entities in different > tables? There may well be, but in your problem description it is not > apparent. If my hunch is correct, then you can put both Franchises and > Customers in the same table, adding a flag to indicate which. There is > the possibility however that an entity is both a Customer and a > Franchise, in which case a boolean won't do, so replace it with a > numeric. > > Up side: much simpler combo selectors. > Down side: selecting only one or the other type demands hitting the > whole table (unless the BE is SQL). > > HTH, > Arthur SELECT EntityID, EntityName, IIF(EntityType="C", "Customer","Franchise") AS Type FROM tblEntities ORDER BY EntityName You could ORDER BY EntityType first to gather them into two groups. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Nov 17 17:33:39 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 15:33:39 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <46B976F2B698FF46A4FE7636509B22DF1B552B@stekelbes.ithelps.local> <419BB062.40007@shaw.ca> Message-ID: <419BDFD3.90008@shaw.ca> Here is the rest of the basic routines takes a couple of minutes for 10000 favourites I was amazed I only had 100 duplicates. I used to dump to an xml file of favourites that I could cart around. Just create a table to hold all your favourite url's with 3 text fields 255 long to hold directory path and filename 1 numeric field for file length 1 date field 1 memo field to hold http url, it will go longer than 255 characters for things like google addresses 'temporary database Dim MyDb As DATABASE Dim MyRs As Recordset ' findsub "C:\Documents and Settings\marty\Favorites\", "*url" Sub testgrab() Set MyDb = CurrentDb Set MyRs = MyDb.OpenRecordset("TempURL") FindSub "C:\Documents and Settings\marty\Favorites\", "*url" Set MyRs = Nothing Set MyDb = Nothing End Sub Sub FindSub(strStart As String, strFindWhat As String) Dim arrFindDir() As String Dim strFind As String Dim i As Long ChDrive (Left(strStart, 3)) ChDir (strStart) Call DirSub(strFindWhat, strStart) strFind = Dir("*.*", vbDirectory) i = 0 Do Until strFind = "" ReDim Preserve arrFindDir(i) arrFindDir(i) = strFind i = i + 1 strFind = Dir() Loop For i = 0 To UBound(arrFindDir) If Dir(arrFindDir(i), vbNormal) = "" And Left(arrFindDir(i), 1) <> "." Then ' Recursive call Call FindSub(strStart & arrFindDir(i) & "\", strFindWhat) ChDir (strStart) End If Next End Sub Sub DirSub(strFindWhat, strStart) Dim strFindfile As String Dim strFullPathName As String 'temporary database 'Dim MyDb As DATABASE 'Dim MyRs As Recordset 'Set MyDb = CurrentDb 'Set MyRs = MyDb.OpenRecordset("TempURL") strFindfile = Dir(strFindWhat, vbNormal) Do While strFindfile <> "" 'Debug.Print strStart & " - " & strFindfile '.lstFiles.AddItem strStart & strFindfile ' colMyList.Add strStart & strFindfile strFullPathName = strStart & strFindfile Debug.Print Len(strFullPathName) & "-" & strFullPathName MyRs.AddNew MyRs!Dirnaam = strStart MyRs!FileNaam = strFullPathName MyRs!file = strFindfile On Error Resume Next 'Weird url filename problems here that are dos illegal because of "?" characters ' you can pick out of table as they will have no filelength. MyRs!FileLen = FileLen(strFullPathName) MyRs!datTime = FileDateTime(strFullPathName) MyRs!Http = GetHTTPfromURL(strFullPathName) On Error GoTo 0 MyRs.Update strFindfile = Dir() Loop 'Set MyRs = Nothing 'Set MyDb = Nothing End Sub MartyConnelly wrote: > I have some really rough code written for Win 95, let me see if I can > upgraded it > but just grab all the ".url" files in the sub directories below that > contain your favourites in win xp or win 2000 > C:\Documents and Settings\usename\Favorites > then pass your .url filename to this routine to drag out the http address > Then pass http url string to xmlhttp or winhttp this will return a 404 > if not valid or 500 if server gone etc. > > Public Function GetHTTPfromURL(FileNaam As String) As String > Dim FSO As New Scripting.FileSystemObject > Dim oFile As file > Dim oText As TextStream > Dim strLine As String > > 'grab the folder already so just get FileName > 'Set oFolder = FSO.GetFolder(Path) > Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary > Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine > End Function > > Erwin Craps - IT Helps wrote: > >> Seeing this, I wunder if there is someone who has some code (and wants >> to share it) to check all hyperlinks in the favorites of IE to see if >> the page/website still exists? >> >> Beeing on the internet for probably about 10 years now got me a lot of >> favorites that are aged and no longer exists... >> >> I like to clean up (sometimes). >> >> Erwin >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Wednesday, November 17, 2004 10:36 AM >> To: accessd at databaseadvisors.com >> Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >> Hi Darren >> >> We use these functions: >> >> >> >> Private Declare Function URLDownloadToFile Lib "urlmon" Alias >> "URLDownloadToFileA" ( _ >> ByVal pCaller As Long, _ >> ByVal szURL As String, _ >> ByVal szFileName As String, _ >> ByVal dwReserved As Long, _ >> ByVal lpfnCB As Long) _ >> As Long >> >> Public Function IsURL(ByVal strURL As String) As Boolean >> >> ' Usage: Check if URL strURL is alive and reachable. >> ' booURL = IsURL("http://www.ibm.com") >> ' booURL = IsURL("ftp://ftp.novell.com") >> ' >> ' Note: Protocol header like "http://" must be provided. >> ' >> ' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >> End Function >> >> >> >> If your URLs contains html document name you will have to modify the >> code to use that and not append index.html. >> >> /gustav >> >> >> >>>>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>> >> >> I have an educational client who has a CD full of Education URL's >> (Zillion's of 'em) Occasionally someone has to test to see if the links >> are broken or not (Manually ) >> >> I thought this would be a perfect application for Access Set up a table >> of URLs and loop through 'em and return TRUE or FALSE >> >> So...Is there a way I can type in >> say...http://somewebsite.someserver.com.au >> and return "true" if the site exists or "false" if the site does not >> exist. >> >> -- >> _______________________________________________ >> 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 d.dick at uws.edu.au Wed Nov 17 18:58:27 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 11:58:27 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: Message-ID: <200411180058.iAI0wbdQ015891@cooper.uws.edu.au> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ 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 Wed Nov 17 19:08:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 12:08:54 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419BB062.40007@shaw.ca> Message-ID: <200411180109.iAI194dQ024697@cooper.uws.edu.au> Hi Marty Thanks for the reply Couple of Q's though :-)) I can't compile past the... Dim FSO as New Scripting.FileSystemObject What do I need to ref to get this to work? I tried alternative of.... Set fso = CreateObject("Scripting.FileSystemObject") and managed to get it to compile and the code 'seemed' to work. In that it filled the temp table with what looked to be correct values - but Dunno if this is the same The Public Function GetHTTPfromURL didn't seem to populate the HTTP Column the temp table Once I do have all the relevant information in the table - how do I actually tell if The link is live (or have I missed it in the code) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 7:11 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS I have some really rough code written for Win 95, let me see if I can upgraded it but just grab all the ".url" files in the sub directories below that contain your favourites in win xp or win 2000 C:\Documents and Settings\usename\Favorites then pass your .url filename to this routine to drag out the http address Then pass http url string to xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim strLine As String 'grab the folder already so just get FileName 'Set oFolder = FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) Set oText = oFile.OpenAsTextStream Do strLine = oText.ReadLine 'contains [InternetShortcut] Loop Until strLine = "[InternetShortcut]" strLine = oText.ReadLine 'should contains URL= oText.Close ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access Write As #1 ' Save the file. 'Open FileNaam For Binary Access Read As #1 ' Read the file. ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text 'Get #1, , VarBuf Debug.Print "**" & strLine & "**" ' Close #1 ' MsgBox "URL sucessfully added to Favorites!", vbInformation GetHTTPfromURL = strLine End Function Erwin Craps - IT Helps wrote: >Seeing this, I wunder if there is someone who has some code (and wants >to share it) to check all hyperlinks in the favorites of IE to see if >the page/website still exists? > >Beeing on the internet for probably about 10 years now got me a lot of >favorites that are aged and no longer exists... > >I like to clean up (sometimes). > >Erwin > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, November 17, 2004 10:36 AM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >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 terry.mace at baesystems.com Wed Nov 17 19:36:57 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 18 Nov 2004 12:06:57 +1030 Subject: [AccessD] Corrupt Data File Message-ID: Help!! I have a store management database application in Ac97 and last night the back end data file was corrupted. I have run the Ac97 repair tool and also Jetcomp.exe on the file and they both say the file is OK. The problem is when I attempt to open it I get the following message: "'Index1' isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names." OK /HELP Clicking on the OK button just terminates the opening process. Due to an undiscovered (until now!) quirk in our backup system, this file has never been backed up. The file size is 7.2Mb and contains about 7000 records. A zipped copy is about 1.6Mb. Any advice on how or who could fix it would be most appreciated. Terry Mace BAE Systems Melbourne, Australia From jmhla at earthlink.net Wed Nov 17 19:56:53 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 17:56:53 -0800 Subject: [AccessD] Make front end see new table in back end. Message-ID: <200411180156.iAI1uhL09921@databaseadvisors.com> Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g From jwcolby at colbyconsulting.com Wed Nov 17 20:07:15 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 17 Nov 2004 21:07:15 -0500 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <200411180156.iAI1uhL09921@databaseadvisors.com> Message-ID: <007101c4cd13$54a52bc0$e8dafea9@ColbyM6805> File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ 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 Wed Nov 17 20:31:17 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 13:31:17 +1100 Subject: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419B76A3.10791.1B493706@lexacorp.com.pg> Message-ID: <200411180231.iAI2VRdR004987@cooper.uws.edu.au> Thanks for the reply Stuart I dunno what they are They are just a gazillion URL type links I just saw them written on a page and was told each one was being 'viewed' manually I thought there must be an easier way Some Egs are http://uws.edu.au/staff/adminorg/academic/edc/av_services http://uws.edu.au/staff/adminorg/academic/edc/vcf http://waceinc.org http://fit.qut.edu.au/courses/undergrad/coop/ Also a lot of them have .index.html and readset1.htm etc At the end of the URL Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, 17 November 2004 5:05 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2003:Test Voracity of URLS On 17 Nov 2004 at 15:03, Darren DICK wrote: > > So...Is there a way I can type in > say...http://somewebsite.someserver.com.au > and return "true" if the site exists or "false" if the site does not exist. > > I know I can ping http://somewebsite.someserver.com.au > and get a result but how > would I capture the ping 'reply' from DOS to a table? > > Or...if any of you already have a method they would like to share them > please let me know > Are they all domains or are some of them links to pages? If the latter, you need to test whether the domain is valid (using DNS lookup) and also test whether a link valid is valid (ie look for 404 messages in response to HTTP requests). In other words you will have to write your own HTTP engine :-( That will still not detect links that point to "parked" domains (take a look at http://www.airniugini.com as an example of a parked domain) -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Wed Nov 17 20:50:16 2004 From: pcs at azizaz.com (pcs at azizaz.com) Date: Thu, 18 Nov 2004 12:50:16 +1000 Subject: [AccessD] Corrupt Data File References: Message-ID: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Are you able to import the backendDb tables into a new empty db? Regards Borge ----- Original Message ----- From: "MACE, Terry" To: "'Access Developers discussion and problem solving'" Sent: Thursday, November 18, 2004 11:36 AM Subject: [AccessD] Corrupt Data File > > Help!! > > I have a store management database application in Ac97 and last night the > back end data file was corrupted. I have run the Ac97 repair tool and also > Jetcomp.exe on the file and they both say the file is OK. > > The problem is when I attempt to open it I get the following message: > > "'Index1' isn't an index in this table. Look in the indexes collection of > the TableDef object to determine the valid index names." OK /HELP > > Clicking on the OK button just terminates the opening process. Due to an > undiscovered (until now!) quirk in our backup system, this file has never > been backed up. The file size is 7.2Mb and contains about 7000 records. A > zipped copy is about 1.6Mb. > > Any advice on how or who could fix it would be most appreciated. > > Terry Mace > BAE Systems > Melbourne, Australia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From martyconnelly at shaw.ca Wed Nov 17 20:50:52 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 18:50:52 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <200411180109.iAI194dQ024697@cooper.uws.edu.au> Message-ID: <419C0E0C.7050405@shaw.ca> Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that it >filled the temp table with what looked to be correct values - but Dunno if >this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP Column >the temp table > >Once I do have all the relevant information in the table - how do I actually >tell if >The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories below >that contain your favourites in win xp or win 2000 C:\Documents and >Settings\usename\Favorites then pass your .url filename to this routine to >drag out the http address Then pass http url string to xmlhttp or winhttp >this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As New >Scripting.FileSystemObject Dim oFile As file Dim oText As TextStream Dim >strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary Access >Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ >> ByVal pCaller As Long, _ >> ByVal szURL As String, _ >> ByVal szFileName As String, _ >> ByVal dwReserved As Long, _ >> ByVal lpfnCB As Long) _ >> As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the links >>are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a table >>of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Wed Nov 17 21:12:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 14:12:33 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419C0E0C.7050405@shaw.ca> Message-ID: <200411180312.iAI3CidQ011702@cooper.uws.edu.au> Hi Marty I have Windows Script Host Object Model Referenced It still fails on the line FSO As New Scripting.FileSystemObject The reference file is... C:\Windows\System32\wshom.ocx I have it at the top (Welll 3rd at least) of the available references Can you remove you reference to it and decompile to see if it fails on that line for you?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 d.dick at uws.edu.au Wed Nov 17 21:28:01 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 18 Nov 2004 14:28:01 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419C0E0C.7050405@shaw.ca> Message-ID: <200411180328.iAI3SCdQ026231@cooper.uws.edu.au> Hi Marty It is now failing on HttpReq.send In the Function testurlxml I think it's time to quit - can't get it to work I really am grateful for your time :-)) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 jmhla at earthlink.net Wed Nov 17 21:39:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 19:39:48 -0800 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <007101c4cd13$54a52bc0$e8dafea9@ColbyM6805> Message-ID: <000001c4cd20$414b54c0$6501a8c0@delllaptop> Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 17 21:56:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 17 Nov 2004 22:56:08 -0500 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <000001c4cd20$414b54c0$6501a8c0@delllaptop> Message-ID: <000301c4cd22$8a112ca0$e8dafea9@ColbyM6805> We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Wed Nov 17 22:05:29 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 20:05:29 -0800 Subject: [AccessD] Make front end see new table in back end. In-Reply-To: <000301c4cd22$8a112ca0$e8dafea9@ColbyM6805> Message-ID: <000e01c4cd23$dabdfc90$6501a8c0@delllaptop> Does the book on the tread mill say way a wizard button will not let you go to a new record JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 7:56 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 17 23:36:53 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 21:36:53 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: <200411180312.iAI3CidQ011702@cooper.uws.edu.au> Message-ID: <419C34F5.3080300@shaw.ca> Arggh it is in both with a different intial reference IWshRuntimeLibrary instead of Scripting, you can see the difference in object browser. also in scrrun.dll Microsoft Scripting Runtime I just looked at the first one. You should have standard Microsoft XML V 4.0 or 3 if running win 2000 or XP Installed by IE 6.0 or OS, unless some has deinstalled c:\windows\system32\msxml4.dll Darren DICK wrote: >Hi Marty >I have Windows Script Host Object Model Referenced >It still fails on the line FSO As New Scripting.FileSystemObject >The reference file is... >C:\Windows\System32\wshom.ocx >I have it at the top (Welll 3rd at least) of the available references > >Can you remove you reference to it and decompile to see if it fails on that >line for you?? > >Many thanks > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, 18 November 2004 1:51 PM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >Reference for scripting filesystem object Wshom.ocx Windows Script Host >Model generically known as WSH > >You should be getting Http Url printed out with asterix in debug window if >it is working, before it is placed in the memo field, maybe a typo name >error in table or code > >The code to test validity of url could be something like this with request >status being returned as 404 or 500 for invalid just like http error codes; >200 for normal or good > >The response Debug.Print HttpReq.StatusText will give you a better >explanation. > >You should have some version of XML installed if using IE 6.0 > >'?testurlxml("http://www.microsoft.com") >Function testurlxml(strURL As String) As String > Dim HttpReq As Object > Set HttpReq = CreateObject("MSXML2.XMLHTTP") > HttpReq.Open "GET", strURL, False > HttpReq.send > 'Debug.Print HttpReq.responseText 'this is returned html string > Debug.Print HttpReq.Status > Debug.Print HttpReq.StatusText > testurlxml = HttpReq.Status '200 normal End Function > >You can also verify legality of url string Private Declare Function >PathIsURL Lib "shlwapi.dll" _ > Alias "PathIsURLA" _ > (ByVal pszPath As String) As Long > > > >Private Function IsPathAURL(ByVal sPath As String) As Boolean > > 'Tests a given string to determine if it > 'conforms to a valid URL format. Returns > 'True if sPath has a valid URL format, > 'or False otherwise. > > 'This function does not verify that the > 'path points to an existing site, only > 'that it has a valid URL format. > > IsPathAURL = PathIsURL(sPath) = 1 > >End Function > >Darren DICK wrote: > > > >>Hi Marty >>Thanks for the reply >>Couple of Q's though :-)) >> >>I can't compile past the... >> >>Dim FSO as New Scripting.FileSystemObject >> >>What do I need to ref to get this to work? >> >>I tried alternative of.... >> >>Set fso = CreateObject("Scripting.FileSystemObject") >> >>and managed to get it to compile and the code 'seemed' to work. In that >>it filled the temp table with what looked to be correct values - but >>Dunno if this is the same >> >>The Public Function GetHTTPfromURL didn't seem to populate the HTTP >>Column the temp table >> >>Once I do have all the relevant information in the table - how do I >>actually tell if The link is live (or have I missed it in the code) >> >>Many thanks >> >>Darren >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>MartyConnelly >>Sent: Thursday, 18 November 2004 7:11 AM >>To: Access Developers discussion and problem solving >>Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS >> >>I have some really rough code written for Win 95, let me see if I can >>upgraded it but just grab all the ".url" files in the sub directories >>below that contain your favourites in win xp or win 2000 C:\Documents >>and Settings\usename\Favorites then pass your .url filename to this >>routine to drag out the http address Then pass http url string to >>xmlhttp or winhttp this will return a 404 if not valid or 500 if server >> >> >gone etc. > > >>Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >>New Scripting.FileSystemObject Dim oFile As file Dim oText As >>TextStream Dim strLine As String >> >>'grab the folder already so just get FileName 'Set oFolder = >>FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) >> Set oText = oFile.OpenAsTextStream >> Do >> strLine = oText.ReadLine 'contains [InternetShortcut] >> Loop Until strLine = "[InternetShortcut]" >> strLine = oText.ReadLine 'should contains URL= >> oText.Close >> >> ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >>Access Write As #1 ' Save the file. >> 'Open FileNaam For Binary Access Read As #1 ' Read the file. >> ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text >> 'Get #1, , VarBuf >> Debug.Print "**" & strLine & "**" >> ' Close #1 >> ' MsgBox "URL sucessfully added to Favorites!", vbInformation >> GetHTTPfromURL = strLine >>End Function >> >>Erwin Craps - IT Helps wrote: >> >> >> >> >> >>>Seeing this, I wunder if there is someone who has some code (and wants >>>to share it) to check all hyperlinks in the favorites of IE to see if >>>the page/website still exists? >>> >>>Beeing on the internet for probably about 10 years now got me a lot of >>>favorites that are aged and no longer exists... >>> >>>I like to clean up (sometimes). >>> >>>Erwin >>> >>> >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>>Brock >>>Sent: Wednesday, November 17, 2004 10:36 AM >>>To: accessd at databaseadvisors.com >>>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >>> >>>Hi Darren >>> >>>We use these functions: >>> >>> >>> >>>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>>ByVal lpfnCB As Long) _ As Long >>> >>>Public Function IsURL(ByVal strURL As String) As Boolean >>> >>>' Usage: Check if URL strURL is alive and reachable. >>>' booURL = IsURL("http://www.ibm.com") >>>' booURL = IsURL("ftp://ftp.novell.com") >>>' >>>' Note: Protocol header like "http://" must be provided. >>>' >>>' 2001-12-09. Cactus Data ApS. CPH. >>> >>>' File found at most URLs. >>>Const cstrFileIndex As String = "index.htm" >>> >>>IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >>> >>>End Function >>> >>> >>> >>>If your URLs contains html document name you will have to modify the >>>code to use that and not append index.html. >>> >>>/gustav >>> >>> >>> >>> >>> >>> >>> >>>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>I have an educational client who has a CD full of Education URL's >>>(Zillion's of 'em) Occasionally someone has to test to see if the >>>links are broken or not (Manually ) >>> >>>I thought this would be a perfect application for Access Set up a >>>table of URLs and loop through 'em and return TRUE or FALSE >>> >>>So...Is there a way I can type in >>>say...http://somewebsite.someserver.com.au >>>and return "true" if the site exists or "false" if the site does not >>>exist. >>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From terry.mace at baesystems.com Wed Nov 17 23:41:04 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Thu, 18 Nov 2004 16:11:04 +1030 Subject: [AccessD] Corrupt Data File Message-ID: Borge, That worked! I didn't think to try that - there was a corrupted test report that I don't need, so all the data is safe - yea! Thanks Terry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of pcs at azizaz.com Sent: Thursday, 18 November 2004 13:50 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Corrupt Data File Are you able to import the backendDb tables into a new empty db? Regards Borge ----- Original Message ----- From: "MACE, Terry" To: "'Access Developers discussion and problem solving'" Sent: Thursday, November 18, 2004 11:36 AM Subject: [AccessD] Corrupt Data File > > Help!! > > I have a store management database application in Ac97 and last night the > back end data file was corrupted. I have run the Ac97 repair tool and also > Jetcomp.exe on the file and they both say the file is OK. > > The problem is when I attempt to open it I get the following message: > > "'Index1' isn't an index in this table. Look in the indexes collection of > the TableDef object to determine the valid index names." OK /HELP > > Clicking on the OK button just terminates the opening process. Due to an > undiscovered (until now!) quirk in our backup system, this file has never > been backed up. The file size is 7.2Mb and contains about 7000 records. A > zipped copy is about 1.6Mb. > > Any advice on how or who could fix it would be most appreciated. > > Terry Mace > BAE Systems > Melbourne, Australia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Nov 17 23:44:23 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Nov 2004 21:44:23 -0800 Subject: [AccessD] Corrupt Data File References: Message-ID: <419C36B7.6060200@shaw.ca> Try Peter Miller at http://www.pksolutions.com If it is fixable the cost is between $200 and $500 You just ftp the file to their site. MACE, Terry wrote: >Help!! > >I have a store management database application in Ac97 and last night the >back end data file was corrupted. I have run the Ac97 repair tool and also >Jetcomp.exe on the file and they both say the file is OK. > >The problem is when I attempt to open it I get the following message: > >"'Index1' isn't an index in this table. Look in the indexes collection of >the TableDef object to determine the valid index names." OK /HELP > >Clicking on the OK button just terminates the opening process. Due to an >undiscovered (until now!) quirk in our backup system, this file has never >been backed up. The file size is 7.2Mb and contains about 7000 records. A >zipped copy is about 1.6Mb. > >Any advice on how or who could fix it would be most appreciated. > >Terry Mace >BAE Systems >Melbourne, Australia > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Thu Nov 18 00:03:51 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 17 Nov 2004 22:03:51 -0800 Subject: [AccessD] New Record wizard button fails Message-ID: <001601c4cd34$635d9f50$6501a8c0@delllaptop> On click it says I cant go to that record JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Erwin.Craps at ithelps.be Thu Nov 18 02:06:37 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 Nov 2004 09:06:37 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5537@stekelbes.ithelps.local> Thank you, I added the api function Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long To get the location of the favorites folder. I modified some code that you can find in the excellent API guide on http://www.mentalis.org/index2.shtml Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, November 18, 2004 12:34 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Here is the rest of the basic routines takes a couple of minutes for 10000 favourites I was amazed I only had 100 duplicates. From Erwin.Craps at ithelps.be Thu Nov 18 02:23:50 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 Nov 2004 09:23:50 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5538@stekelbes.ithelps.local> It is without the scripting. FSO As New FileSystemObject -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, November 18, 2004 4:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS Hi Marty I have Windows Script Host Object Model Referenced It still fails on the line FSO As New Scripting.FileSystemObject The reference file is... C:\Windows\System32\wshom.ocx I have it at the top (Welll 3rd at least) of the available references Can you remove you reference to it and decompile to see if it fails on that line for you?? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, 18 November 2004 1:51 PM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Reference for scripting filesystem object Wshom.ocx Windows Script Host Model generically known as WSH You should be getting Http Url printed out with asterix in debug window if it is working, before it is placed in the memo field, maybe a typo name error in table or code The code to test validity of url could be something like this with request status being returned as 404 or 500 for invalid just like http error codes; 200 for normal or good The response Debug.Print HttpReq.StatusText will give you a better explanation. You should have some version of XML installed if using IE 6.0 '?testurlxml("http://www.microsoft.com") Function testurlxml(strURL As String) As String Dim HttpReq As Object Set HttpReq = CreateObject("MSXML2.XMLHTTP") HttpReq.Open "GET", strURL, False HttpReq.send 'Debug.Print HttpReq.responseText 'this is returned html string Debug.Print HttpReq.Status Debug.Print HttpReq.StatusText testurlxml = HttpReq.Status '200 normal End Function You can also verify legality of url string Private Declare Function PathIsURL Lib "shlwapi.dll" _ Alias "PathIsURLA" _ (ByVal pszPath As String) As Long Private Function IsPathAURL(ByVal sPath As String) As Boolean 'Tests a given string to determine if it 'conforms to a valid URL format. Returns 'True if sPath has a valid URL format, 'or False otherwise. 'This function does not verify that the 'path points to an existing site, only 'that it has a valid URL format. IsPathAURL = PathIsURL(sPath) = 1 End Function Darren DICK wrote: >Hi Marty >Thanks for the reply >Couple of Q's though :-)) > >I can't compile past the... > >Dim FSO as New Scripting.FileSystemObject > >What do I need to ref to get this to work? > >I tried alternative of.... > >Set fso = CreateObject("Scripting.FileSystemObject") > >and managed to get it to compile and the code 'seemed' to work. In that >it filled the temp table with what looked to be correct values - but >Dunno if this is the same > >The Public Function GetHTTPfromURL didn't seem to populate the HTTP >Column the temp table > >Once I do have all the relevant information in the table - how do I >actually tell if The link is live (or have I missed it in the code) > >Many thanks > >Darren > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >MartyConnelly >Sent: Thursday, 18 November 2004 7:11 AM >To: Access Developers discussion and problem solving >Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS > >I have some really rough code written for Win 95, let me see if I can >upgraded it but just grab all the ".url" files in the sub directories >below that contain your favourites in win xp or win 2000 C:\Documents >and Settings\usename\Favorites then pass your .url filename to this >routine to drag out the http address Then pass http url string to >xmlhttp or winhttp this will return a 404 if not valid or 500 if server gone etc. > >Public Function GetHTTPfromURL(FileNaam As String) As String Dim FSO As >New Scripting.FileSystemObject Dim oFile As file Dim oText As >TextStream Dim strLine As String > >'grab the folder already so just get FileName 'Set oFolder = >FSO.GetFolder(Path) Set oFile = FSO.GetFile(FileNaam) > Set oText = oFile.OpenAsTextStream > Do > strLine = oText.ReadLine 'contains [InternetShortcut] > Loop Until strLine = "[InternetShortcut]" > strLine = oText.ReadLine 'should contains URL= > oText.Close > > ' Open "C:\Windows\Favorites\" & Text1.Text & ".url" For Binary >Access Write As #1 ' Save the file. > 'Open FileNaam For Binary Access Read As #1 ' Read the file. > ' Put #1, , "[InternetShortcut]" & vbNewLine & "URL=" & Text1.Text > 'Get #1, , VarBuf > Debug.Print "**" & strLine & "**" > ' Close #1 > ' MsgBox "URL sucessfully added to Favorites!", vbInformation > GetHTTPfromURL = strLine >End Function > >Erwin Craps - IT Helps wrote: > > > >>Seeing this, I wunder if there is someone who has some code (and wants >>to share it) to check all hyperlinks in the favorites of IE to see if >>the page/website still exists? >> >>Beeing on the internet for probably about 10 years now got me a lot of >>favorites that are aged and no longer exists... >> >>I like to clean up (sometimes). >> >>Erwin >> >> >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Wednesday, November 17, 2004 10:36 AM >>To: accessd at databaseadvisors.com >>Subject: Svar: [AccessD] A2003:Test Voracity of URLS >> >>Hi Darren >> >>We use these functions: >> >> >> >>Private Declare Function URLDownloadToFile Lib "urlmon" Alias >>"URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As >>String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ >>ByVal lpfnCB As Long) _ As Long >> >>Public Function IsURL(ByVal strURL As String) As Boolean >> >>' Usage: Check if URL strURL is alive and reachable. >>' booURL = IsURL("http://www.ibm.com") >>' booURL = IsURL("ftp://ftp.novell.com") >>' >>' Note: Protocol header like "http://" must be provided. >>' >>' 2001-12-09. Cactus Data ApS. CPH. >> >> ' File found at most URLs. >> Const cstrFileIndex As String = "index.htm" >> >> IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) >> >>End Function >> >> >> >>If your URLs contains html document name you will have to modify the >>code to use that and not append index.html. >> >>/gustav >> >> >> >> >> >>>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>>> >>>>> >>>>> >>>>> >>I have an educational client who has a CD full of Education URL's >>(Zillion's of 'em) Occasionally someone has to test to see if the >>links are broken or not (Manually ) >> >>I thought this would be a perfect application for Access Set up a >>table of URLs and loop through 'em and return TRUE or FALSE >> >>So...Is there a way I can type in >>say...http://somewebsite.someserver.com.au >>and return "true" if the site exists or "false" if the site does not >>exist. >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- 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 Gustav at cactus.dk Thu Nov 18 03:42:06 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 10:42:06 +0100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Hi Darren Not quite sure what you are doing. It will return one result only ... index.htm is chosen as any site has this page. By second thought, index.html is possible too, but I don't know (do we have a web guru present?) - perhaps the function should be expanded to check for any of these two files? /gustav >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From andy at minstersystems.co.uk Thu Nov 18 03:09:56 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 10:09:56 +0100 Subject: [AccessD] Updatable UNION? Message-ID: <20041118100955.0151024C988@smtp.nildram.co.uk> Morning all I've a continuous screen which needs to list two types of order in date sequence. These are held on separate tables. No problem, a UNION query does the job fine. However the user has to tick an order to say it's despatched, and then the screen needs to show that information, but the recordset is not updatable. Presumably this applies to all UNION queries does it? Does anyone have a way round this or do I have to go to extracting to a temp table and all that jazz? By the way it's not practical to upodate the underlying tables and requery to display the depatch info because there's a lot of data on screen and requerying takes too long. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Thu Nov 18 04:58:03 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 11:58:03 +0100 Subject: [AccessD] Updatable UNION? Message-ID: Hi Andy No, unions are read-only. If you can't go the update-behind-requery route, I guess you are left with the temp table. /gustav >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> Morning all I've a continuous screen which needs to list two types of order in date sequence. These are held on separate tables. No problem, a UNION query does the job fine. However the user has to tick an order to say it's despatched, and then the screen needs to show that information, but the recordset is not updatable. Presumably this applies to all UNION queries does it? Does anyone have a way round this or do I have to go to extracting to a temp table and all that jazz? By the way it's not practical to upodate the underlying tables and requery to display the depatch info because there's a lot of data on screen and requerying takes too long. -- Andy Lacey http://www.minstersystems.co.uk From cyx5 at cdc.gov Thu Nov 18 05:25:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:25:04 -0500 Subject: [AccessD] Make front end see new table in back end. Message-ID: 1. The form is based on a non-updateable record source. 2. The form, in the properties box, has allow additions set to no. 3. The user does not have permissions to create, edit, update, etc on table in SQL. 4. It is just a bad day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 11:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Does the book on the tread mill say way a wizard button will not let you go to a new record JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 7:56 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. We all need a jolt sometimes. I use Diet Pepsi or chocolate covered coffee beans. And now of course I'm starting walking on a treadmill. 8-0 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 10:40 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. Thanks for unmelting my mind John JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, November 17, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Make front end see new table in back end. File/get external data/link table John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, November 17, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Make front end see new table in back end. Inherited database problem. OK Stop laughing at me. At least the original programmer is still there. I added a table to the BE. I cant or can't remember how to make the FE see the new table to do forms and stuff. Thanks Joe Hecht jmhla at earthlink.net 28g -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.Foote at uk.thalesgroup.com Thu Nov 18 05:26:29 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 18 Nov 2004 11:26:29 -0000 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C491@ntscxch1.int.rdel.co.uk> Gustav I'm not a guru but the "home page" for a website could be any of the following list: "index", "default" with the extensions htm, html, shtm, shtml, cfm, asp, php and so on I'm sure there are others! HTH Chris Foote > -----Original Message----- > From: Gustav Brock [mailto:Gustav at cactus.dk] > Sent: Thursday, November 18, 2004 9:42 AM > To: accessd at databaseadvisors.com > Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > > Hi Darren > > Not quite sure what you are doing. It will return one result only ... > index.htm is chosen as any site has this page. By second thought, > index.html is possible too, but I don't know (do we have a web guru > present?) - perhaps the function should be expanded to check > for any of > these two files? > > /gustav > From cyx5 at cdc.gov Thu Nov 18 05:49:52 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:49:52 -0500 Subject: [AccessD] New Record wizard button fails Message-ID: 1. The form is based on a non-updateable record source. 2. The form, in the properties box, has allow additions set to no. 3. The user does not have permissions to create, edit, update, etc on table in SQL. 4. It is just a bad day. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, November 18, 2004 1:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] New Record wizard button fails On click it says I cant go to that record JOE HECHT LOS ANGELES CA jmhla at earthlink.net From andy at minstersystems.co.uk Thu Nov 18 04:50:12 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 11:50:12 +0100 Subject: [AccessD] Updatable UNION? Message-ID: <20041118115010.AB95725D353@smtp.nildram.co.uk> Feared that might be the case. Ah well, always worth asking the list cos if there's a way someone here will know it. Thanks for the response Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Updatable UNION? Date: 18/11/04 10:59 > > Hi Andy > > No, unions are read-only. If you can't go the update-behind-requery > route, I guess you are left with the temp table. > > /gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > > Morning all > I've a continuous screen which needs to list two types of order in > date > sequence. These are held on separate tables. No problem, a UNION query > does > the job fine. However the user has to tick an order to say it's > despatched, > and then the screen needs to show that information, but the recordset > is not > updatable. Presumably this applies to all UNION queries does it? Does > anyone > have a way round this or do I have to go to extracting to a temp table > and > all that jazz? > > By the way it's not practical to upodate the underlying tables and > requery > to display the depatch info because there's a lot of data on screen > and > requerying takes too long. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > _______________________________________________ > 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 bheid at appdevgrp.com Thu Nov 18 07:09:33 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 08:09:33 -0500 Subject: [AccessD] Control reference question. Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9EA@ADGSERVER> Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby From stuart at lexacorp.com.pg Thu Nov 18 07:29:27 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 Nov 2004 23:29:27 +1000 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C491@ntscxch1.int.rdel.co.uk> Message-ID: <419D3057.18490.2206AC40@lexacorp.com.pg> On 18 Nov 2004 at 11:26, Foote, Chris wrote: > > Gustav > > I'm not a guru but the "home page" for a website could be any of the > following list: > > "index", "default" > > with the extensions htm, html, shtm, shtml, cfm, asp, php and so on > > I'm sure there are others! > And if there is no recognisable "home page", I think you will find it shows a directory listing. Basically, the solution is to issue a HTTP "Get" (or preferably a "Head" so that you don't pull the full contents back) request and check the status code of the response: RFC 2068: 6 Response After receiving and interpreting a request message, a server responds with an HTTP response message. Response = Status-Line ; Section 6.1 *( general-header ; Section 4.5 | response-header ; Section 6.2 | entity-header ) ; Section 7.1 CRLF [ message-body ] ; Section 7.2 6.1 Status-Line The first line of a Response message is the Status-Line, consisting of the protocol version followed by a numeric status code and its associated textual phrase, with each element separated by SP characters. No CR or LF is allowed except in the final CRLF sequence. Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF 6.1.1 Status Code and Reason Phrase The Status-Code element is a 3-digit integer result code of the attempt to understand and satisfy the request. These codes are fully defined in section 10. The Reason-Phrase is intended to give a short textual description of the Status-Code. The Status-Code is intended for use by automata and the Reason-Phrase is intended for the human user. The client is not required to examine or display the Reason- Phrase. The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit: o 1xx: Informational - Request received, continuing process o 2xx: Success - The action was successfully received, understood, and accepted o 3xx: Redirection - Further action must be taken in order to complete the request o 4xx: Client Error - The request contains bad syntax or cannot be fulfilled o 5xx: Server Error - The server failed to fulfill an apparently valid request -- Stuart From andy at minstersystems.co.uk Thu Nov 18 06:31:20 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 13:31:20 +0100 Subject: [AccessD] Control reference question. Message-ID: <20041118133118.3403B25D6DD@smtp.nildram.co.uk> Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to make > the text in 2 fields bold. The detail print event is where I was changing > it at. In a non sub report, I just use the fontbold property. Well, in the > case of the sub report, I could not set this value (or any normal value) > programmatically. Intellisense would not show me what I wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 bheid at appdevgrp.com Thu Nov 18 07:49:04 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 08:49:04 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B5B1@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9EB@ADGSERVER> Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 reuben at gfconsultants.com Thu Nov 18 08:05:45 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 18 Nov 2004 09:05:45 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB9EB@ADGSERVER> Message-ID: Reports have several properties not shown in intellisense. Visible is one. I use it all the time though. There are several I use not shown, but work perfectly. I can't give you a solution but I can ensure you that you aren't nuts. If the condition to check is on the main form I reference the subform using me.subreportname.controlname.property = whatever Does anyone have an explanation for the lack of properties showing in intellisense? Is it corrected in versions after 2000? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 8:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 From jwcolby at colbyconsulting.com Thu Nov 18 08:24:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 09:24:26 -0500 Subject: [AccessD] Control reference question. In-Reply-To: Message-ID: <002201c4cd7a$5000cb30$e8dafea9@ColbyM6805> My take was always that the ones that are not visible are "undocumented" - perhaps lingering bugs make their usage a potential maintenance issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, November 18, 2004 9:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Reports have several properties not shown in intellisense. Visible is one. I use it all the time though. There are several I use not shown, but work perfectly. I can't give you a solution but I can ensure you that you aren't nuts. If the condition to check is on the main form I reference the subform using me.subreportname.controlname.property = whatever Does anyone have an explanation for the lack of properties showing in intellisense? Is it corrected in versions after 2000? Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 8:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Andy, I did try that. It gave me an error when ran. It also would not show me visible or any of the other items you would normally see for a textbox. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 7:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control reference question. Bobby Intellisense doesn't show FontBold but it's still there. Just put Me!YourControl.FontBold=True in the subreport and it'll work fine. -- 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] Control reference question. Date: 18/11/04 13:09 > Hi all, > > I have a report with several sub reports on it. I had to modify a sub > report yesterday so that if a certain condition was met, I needed to > make the text in 2 fields bold. The detail print event is where I was > changing it at. In a non sub report, I just use the fontbold > property. Well, in the > case of the sub report, I could not set this value (or any normal > value) programmatically. Intellisense would not show me what I > wanted. I ended up > using reports!MainReport!Subreport!control to set the fontbold > property. > > My question is, is that the proper way to handle this? Or is there > something that I am not seeing? > > Thanks, > Bobby > > > > > > > -- > _______________________________________________ > 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Thu Nov 18 08:29:09 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 18 Nov 2004 09:29:09 -0500 Subject: Svar: [AccessD] A2003:Test Voracity of URLS Message-ID: Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. From andy at minstersystems.co.uk Thu Nov 18 08:09:02 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Nov 2004 15:09:02 +0100 Subject: [AccessD] Control reference question. Message-ID: <20041118150859.4F9052567AC@smtp.nildram.co.uk> Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- 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] Control reference question. Date: 18/11/04 13:49 > > Andy, > > I did try that. It gave me an error when ran. It also would not show me > visible or any of the other items you would normally see for a textbox. > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, November 18, 2004 7:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Control reference question. > > > Bobby > Intellisense doesn't show FontBold but it's still there. Just put > Me!YourControl.FontBold=True in the subreport and it'll work fine. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: [AccessD] Control reference question. > Date: 18/11/04 13:09 > > > Hi all, > > > > I have a report with several sub reports on it. I had to modify a sub > > report yesterday so that if a certain condition was met, I needed to > > make the text in 2 fields bold. The detail print event is where I was > > changing it at. In a non sub report, I just use the fontbold > > property. Well, in > the > > case of the sub report, I could not set this value (or any normal > > value) programmatically. Intellisense would not show me what I > > wanted. I ended > up > > using reports!MainReport!Subreport!control to set the fontbold > > property. > > > > My question is, is that the proper way to handle this? Or is there > > something that I am not seeing? > > > > Thanks, > > Bobby > > > > > > > > > > > > > > -- > > _______________________________________________ > > 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 rl_stewart at highstream.net Thu Nov 18 09:09:04 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 09:09:04 -0600 Subject: [AccessD] Re: Test Voracity of URLS In-Reply-To: <200411181429.iAIEThL10841@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118090652.012abc40@pop3.highstream.net> Actually, it can be anything that you define for the site. Index is common, but so is Default. And, the extension is the same way; htm, html, aspx, asp, etc. When you set the starting page for a web site, it can be anything and have any extension. At 08:29 AM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 10:42:06 +0100 >From: "Gustav Brock" >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren From Gustav at cactus.dk Thu Nov 18 09:23:26 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 16:23:26 +0100 Subject: [AccessD] Test Voracity of URLS Message-ID: OK, I realize "my" method (which isn't mine) is far from perfect. While checking thousands of URLs which is not very common for most of us, checking one or two is realistic. So how would a neat IsURL() function look like given the knowledge we now have? /gustav >>> rl_stewart at highstream.net 18-11-2004 16:09:04 >>> Actually, it can be anything that you define for the site. Index is common, but so is Default. And, the extension is the same way; htm, html, aspx, asp, etc. When you set the starting page for a web site, it can be anything and have any extension. At 08:29 AM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 10:42:06 +0100 >From: "Gustav Brock" >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren From Mark.Mitsules at ngc.com Thu Nov 18 09:46:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Thu, 18 Nov 2004 10:46:05 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark From bheid at appdevgrp.com Thu Nov 18 09:53:24 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 10:53:24 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B60A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F1@ADGSERVER> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk From dwaters at usinternet.com Thu Nov 18 09:52:19 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 18 Nov 2004 09:52:19 -0600 Subject: [AccessD] Control reference question. In-Reply-To: <11531066.1100783288953.JavaMail.root@sniper13.securence.com> Message-ID: <001701c4cd86$9674b840$de1811d8@danwaters> Bobby, I believe that the Print event is too late in the sequence of report events. Try using the section's Format event or the report's Activate event. You could also try using Conditional Formatting! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Control reference question. Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby From bheid at appdevgrp.com Thu Nov 18 10:05:42 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 11:05:42 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B65C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F2@ADGSERVER> Hey Dan, >From Access help: FontBold Property You can use the FontBold property to specify whether a font appears in a bold style in the following situations: When displaying or printing controls on forms and reports. When using the Print method on a report. It is my understanding (which may be wrong) that the print event should be used to change the way an existing item looks (bold, background, etc.) and that format should be used when an item may or may not print (visibility, etc.) and changing an item could cause the current item to possibly be moved to the next page or something like that. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, November 18, 2004 10:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Bobby, I believe that the Print event is too late in the sequence of report events. Try using the section's Format event or the report's Activate event. You could also try using Conditional Formatting! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Control reference question. Hi all, I have a report with several sub reports on it. I had to modify a sub report yesterday so that if a certain condition was met, I needed to make the text in 2 fields bold. The detail print event is where I was changing it at. In a non sub report, I just use the fontbold property. Well, in the case of the sub report, I could not set this value (or any normal value) programmatically. Intellisense would not show me what I wanted. I ended up using reports!MainReport!Subreport!control to set the fontbold property. My question is, is that the proper way to handle this? Or is there something that I am not seeing? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Nov 18 10:09:02 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 17:09:02 +0100 Subject: [AccessD] Control reference question. Message-ID: Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk From bheid at appdevgrp.com Thu Nov 18 10:30:50 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 11:30:50 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B67C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F3@ADGSERVER> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From Patricia.O'Connor at dfa.state.ny.us Thu Nov 18 11:05:07 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 18 Nov 2004 12:05:07 -0500 Subject: [AccessD] Re: ODBC against Oracle partitioned db Message-ID: What is TOAD? I was wondering whether the newest Oracle ODBC driver would solve it. We still have the 9.x one. Thanks Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Robert L. Stewart > Sent: Tuesday, November 16, 2004 02:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: ODBC against Oracle partitioned db > > As you can see, Access and the ODBC driver has trouble with a > partioned table. > > Use Toad or something like it for the type of things you > would do in running queries and viewing data. Since it is > written for Oracle, it plays with it better. > > Robert > > At 12:01 PM 11/16/2004 -0600, you wrote: > >Date: Tue, 16 Nov 2004 10:28:49 -0500 > >From: "O'Connor, Patricia \(OTDA\)" > > > >Subject: [AccessD] ODBC against Oracle partitioned db > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >Hi all > > > >When I use the Oracle ODBC driver against an ORACLE un-partitioned > >table from Access (either passthru or gui), I have not problem. Data > >comes back can scroll through 1-30+K records no problem. > > > >When I use same driver against an Oracle partitioned table > from access, > >I get temporary freeze ups when scrolling through records even > >scrolling from column 1 to say col 10 on screen. It doesn't > matter how > >many records in set - scroll down 3-6 records - stop. Sometimes the > >stall can be 2-5 minutes. > > > >Doesn't matter if it is the only thing running on computer. I do not > >have this problem with an unpartioned set. I waste a good amount of > >time waiting for access to let me back in. > > > >Has anyone run into this and is there a workaround or > setting I need to > >change in the driver configuration. My machine is Win2k, Access2k, > >Oracle10 > > > >Thanks in advance > >Patti > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From donald.a.Mcgillivray at mail.sprint.com Thu Nov 18 11:11:37 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 18 Nov 2004 11:11:37 -0600 Subject: [AccessD] Need a summary query to return more than one record for a member of a group Message-ID: <988E2AC88CCB54459286C4077DB662F502857E74@PDAWB03C.ad.sprint.com> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services From kaupca at chevrontexaco.com Thu Nov 18 11:23:12 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 18 Nov 2004 11:23:12 -0600 Subject: [AccessD] Query of query results problem Message-ID: <1375769556091B4DAABC159F944CA1BB07A2D9@bocnte2k4.hou150.chevrontexaco.net> I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From tinanfields at torchlake.com Thu Nov 18 11:23:36 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 12:23:36 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? Message-ID: <419CDA98.8050300@torchlake.com> Hello all you gurus - Is WithEvents not an acceptable keyword in AccessXP (file format Access 2000)? I am playing with code from John Colby's demos, and in my module, which is a straight copy of his, the line "Private WithEvents mtxt As TextBox" is red, which usually means Visual Basic doesn't recognize the keywords I've used. Is there a version problem possibly? My VBA says it is 6.3.8863. Any clues here would be very much appreciated. It's especially confusing to me, since in John's code the keywords remain a nice blue. What am I missing? Tina From Gustav at cactus.dk Thu Nov 18 11:37:27 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 18:37:27 +0100 Subject: Svar: RE: [AccessD] Control reference question. Message-ID: Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From cyx5 at cdc.gov Thu Nov 18 11:43:29 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 12:43:29 -0500 Subject: [AccessD] Query of query results problem Message-ID: Isn't there something about a calculation inheriting the format of the, what I think of, the simplest format? What if you set the formatting in the second query in the query itself to like a double and specify the number of decimals? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester A Sent: Thursday, November 18, 2004 12:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Query of query results problem I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 18 11:48:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 12:48:05 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? In-Reply-To: <419CDA98.8050300@torchlake.com> Message-ID: <003c01c4cd96$c24421d0$e8dafea9@ColbyM6805> You copied and pasted from my demo and it is not compiling? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Thursday, November 18, 2004 12:24 PM To: DatabaseAdvisors-Access Subject: [AccessD] WithEvents - Why doesn't my Access like it? Hello all you gurus - Is WithEvents not an acceptable keyword in AccessXP (file format Access 2000)? I am playing with code from John Colby's demos, and in my module, which is a straight copy of his, the line "Private WithEvents mtxt As TextBox" is red, which usually means Visual Basic doesn't recognize the keywords I've used. Is there a version problem possibly? My VBA says it is 6.3.8863. Any clues here would be very much appreciated. It's especially confusing to me, since in John's code the keywords remain a nice blue. What am I missing? Tina -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Thu Nov 18 11:57:01 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 12:57:01 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? References: <003c01c4cd96$c24421d0$e8dafea9@ColbyM6805> Message-ID: <419CE26D.9090909@torchlake.com> Okay, I just figured it out. What I failed to do was make sure I was creating a class module! Arrgh! I'm banging my head against the wall. Thanks for responding. It's been a long few days. Tina John W. Colby wrote: >You copied and pasted from my demo and it is not compiling? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: Thursday, November 18, 2004 12:24 PM >To: DatabaseAdvisors-Access >Subject: [AccessD] WithEvents - Why doesn't my Access like it? > > >Hello all you gurus - >Is WithEvents not an acceptable keyword in AccessXP (file format Access >2000)? I am playing with code from John Colby's demos, and in my >module, which is a straight copy of his, the line >"Private WithEvents mtxt As TextBox" is red, which usually means Visual >Basic doesn't recognize the keywords I've used. Is there a version >problem possibly? My VBA says it is 6.3.8863. Any clues here would be >very much appreciated. It's especially confusing to me, since in John's >code the keywords remain a nice blue. What am I missing? >Tina > > > From accessd at shaw.ca Thu Nov 18 12:03:34 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:03:34 -0800 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: Message-ID: General comment Any file extension and file name can be setup as default initial web site code. Html (variations htm, htlms...), and is just one extension type but 'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to name a few, are just as valid and standard. As for names, anything goes. The most common are of course 'index', but 'homepage' is a standard when using MS FP. It is all set up on your IIS or Apache, in the properties per hosted web site. Most sites are fairly standard but I have seen some odd variations over the years. In a nutshell, everything goes. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 1:42 AM To: accessd at databaseadvisors.com Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren Not quite sure what you are doing. It will return one result only ... index.htm is chosen as any site has this page. By second thought, index.html is possible too, but I don't know (do we have a web guru present?) - perhaps the function should be expanded to check for any of these two files? /gustav >>> d.dick at uws.edu.au 18-11-2004 01:58:27 >>> Hi Gustav Many thanks I'm not sure how to use the code though :-(( I get odd results When I put isUrl ("http://www.ibm.com") behind a button on a form and put debug.print IsURL at the end of Public Function IsURL I get "true" If I put msgbox IsYrl at the end of Public Function IsURL I get false ?? Dunno what it all means http://www.ibm.com is a valid and live website How do it know if there will be an index.htm file at the other end? And how come I get differeing results with MSGBOX and Debug.print? Obviously doing something wrong Many thanks in advance Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, 17 November 2004 8:36 PM To: accessd at databaseadvisors.com Subject: Svar: [AccessD] A2003:Test Voracity of URLS Hi Darren We use these functions: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function If your URLs contains html document name you will have to modify the code to use that and not append index.html. /gustav >>> d.dick at uws.edu.au 17-11-2004 05:03:08 >>> I have an educational client who has a CD full of Education URL's (Zillion's of 'em) Occasionally someone has to test to see if the links are broken or not (Manually ) I thought this would be a perfect application for Access Set up a table of URLs and loop through 'em and return TRUE or FALSE So...Is there a way I can type in say...http://somewebsite.someserver.com.au and return "true" if the site exists or "false" if the site does not exist. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Nov 18 12:06:50 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Nov 2004 19:06:50 +0100 Subject: [AccessD] Need a summary query to return more than one record for amember of a group Message-ID: Hi Don You need to, for each record, look up the date/time of the next entry and calculate the minutes: lngMinutes: DateDiff("n", InsertTime, (Select Top 1 T.InsertTime From tblTable As T Where T.InsertTime > tblTable.InsertTime Order By T.InsertTime Asc) The sum the minutes by grouping in another query where you use the above as source. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 18-11-2004 18:11:37 >>> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services From jwcolby at colbyconsulting.com Thu Nov 18 12:12:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:12:49 -0500 Subject: [AccessD] WithEvents - Why doesn't my Access like it? In-Reply-To: <419CE26D.9090909@torchlake.com> Message-ID: <003e01c4cd9a$365ed9e0$e8dafea9@ColbyM6805> LOL> Yea, it should tell you that syntax is not valid outside of a class or something similar. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Thursday, November 18, 2004 12:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WithEvents - Why doesn't my Access like it? Okay, I just figured it out. What I failed to do was make sure I was creating a class module! Arrgh! I'm banging my head against the wall. Thanks for responding. It's been a long few days. Tina John W. Colby wrote: >You copied and pasted from my demo and it is not compiling? > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: Thursday, November 18, 2004 12:24 PM >To: DatabaseAdvisors-Access >Subject: [AccessD] WithEvents - Why doesn't my Access like it? > > >Hello all you gurus - >Is WithEvents not an acceptable keyword in AccessXP (file format Access >2000)? I am playing with code from John Colby's demos, and in my >module, which is a straight copy of his, the line >"Private WithEvents mtxt As TextBox" is red, which usually means Visual >Basic doesn't recognize the keywords I've used. Is there a version >problem possibly? My VBA says it is 6.3.8863. Any clues here would be >very much appreciated. It's especially confusing to me, since in John's >code the keywords remain a nice blue. What am I missing? >Tina > > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Nov 18 12:13:43 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:13:43 -0800 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB9F1@ADGSERVER> Message-ID: What is standard is that there is none. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Thursday, November 18, 2004 7:53 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Control reference question. Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, November 18, 2004 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Control reference question. Well I don't understand that. just tried it on a report and it worked fine. Do you want to post the whole line of code that errored? -- Andy Lacey http://www.minstersystems.co.uk -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Thu Nov 18 12:26:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 18 Nov 2004 13:26:38 -0500 Subject: Svar: RE: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B702@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F7@ADGSERVER> Gustav, Yes, that works also. Why would I need to put .Report on the end? It already knows it is in the Reports collection? I have never seen anything like that when referencing something on a form either? Is there a .Form for the forms? Also, what is Svar in the subject? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 12:37 PM To: accessd at databaseadvisors.com Subject: Svar: RE: [AccessD] Control reference question. Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From lists at theopg.com Thu Nov 18 12:28:41 2004 From: lists at theopg.com (MarkH) Date: Thu, 18 Nov 2004 18:28:41 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> Hello All (I sent his yesterday but it didn';t seem to get through...) Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark From rl_stewart at highstream.net Thu Nov 18 12:47:09 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 12:47:09 -0600 Subject: [AccessD] Re: Control reference question. In-Reply-To: <200411181801.iAII1CL28773@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118124620.047d7308@pop3.highstream.net> If you are working with a subReport, the Gustav is correct. Reports and forms are the same in referencing controls in a sub. Robert At 12:01 PM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 11:30:50 -0500 >From: "Bobby Heid" >Subject: RE: [AccessD] Control reference question. >To: "'Access Developers discussion and problem solving'" > >Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9F3 at ADGSERVER> >Content-Type: text/plain; charset="US-ASCII" > >I dunno, it works as I have it. I have never used Report on the end like >you have it. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 11:09 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Control reference question. > > >Hi Bobby > >Shouldn't it read: > > With Reports!Closeout!Closeout_GL_sub.Report > If !txtSetBold <> 0 Then > !txtGLEstPayroll.FONTBOLD = True > !txtGLFinalPayroll.FONTBOLD = True > Else > !txtGLEstPayroll.FONTBOLD = False > !txtGLFinalPayroll.FONTBOLD = False > End If > End With > >/gustav From rl_stewart at highstream.net Thu Nov 18 12:48:44 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 18 Nov 2004 12:48:44 -0600 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: <200411181801.iAII1CL28773@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041118124816.013f0c68@pop3.highstream.net> Take a look at http://www.quest.com/toad/ Robert At 12:01 PM 11/18/2004 -0600, you wrote: >Date: Thu, 18 Nov 2004 12:05:07 -0500 >From: "O'Connor, Patricia \(OTDA\)" > >Subject: RE: [AccessD] Re: ODBC against Oracle partitioned db >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > > >What is TOAD? > >I was wondering whether the newest Oracle ODBC driver would solve it. We >still have the 9.x one. > >Thanks >Patti From tinanfields at torchlake.com Thu Nov 18 12:49:57 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 18 Nov 2004 13:49:57 -0500 Subject: Svar: [AccessD] A2003:Test Voracity of URLS References: Message-ID: <419CEED5.3000105@torchlake.com> Okay, I can't resist any longer - didn't anybody else laugh about this subject line? How hungry does a URL have to be before it becomes voracious and we have to test its voracity? LOL Tina Jim Lawrence (AccessD) wrote: >General comment > >Any file extension and file name can be setup as default initial web site >code. Html (variations htm, htlms...), and is just one extension type but >'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to name a few, are >just as valid and standard. As for names, anything goes. The most common are >of course 'index', but 'homepage' is a standard when using MS FP. It is all >set up on your IIS or Apache, in the properties per hosted web site. Most >sites are fairly standard but I have seen some odd variations over the >years. In a nutshell, everything goes. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 1:42 AM >To: accessd at databaseadvisors.com >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > > >>>>d.dick at uws.edu.au 18-11-2004 01:58:27 >>> >>>> >>>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form >and put debug.print IsURL at the end of Public Function IsURL >I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL >I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website >How do it know if there will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >Brock >Sent: Wednesday, 17 November 2004 8:36 PM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to >use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's >of 'em) Occasionally someone has to test to see if the links are broken >or >not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of >URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From markamatte at hotmail.com Thu Nov 18 12:54:55 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 18 Nov 2004 18:54:55 +0000 Subject: [AccessD] Corrupt Data File In-Reply-To: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Message-ID: I had the same/similar problem a few months ago...If I tried to import,export, or compact...I would get that error. It seemed to revolve around 1 record( with a memo field)...when viewing the memo 'error' appeared. I removed this record...and was able to compact. Good Luck, Mark A. Matte >From: >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Corrupt Data File >Date: Thu, 18 Nov 2004 12:50:16 +1000 > >Are you able to import the backendDb tables into a new empty db? > >Regards >Borge > >----- Original Message ----- >From: "MACE, Terry" >To: "'Access Developers discussion and problem solving'" > >Sent: Thursday, November 18, 2004 11:36 AM >Subject: [AccessD] Corrupt Data File > > > > > > Help!! > > > > I have a store management database application in Ac97 and last night >the > > back end data file was corrupted. I have run the Ac97 repair tool and >also > > Jetcomp.exe on the file and they both say the file is OK. > > > > The problem is when I attempt to open it I get the following message: > > > > "'Index1' isn't an index in this table. Look in the indexes collection >of > > the TableDef object to determine the valid index names." OK /HELP > > > > Clicking on the OK button just terminates the opening process. Due to >an > > undiscovered (until now!) quirk in our backup system, this file has >never > > been backed up. The file size is 7.2Mb and contains about 7000 records. >A > > zipped copy is about 1.6Mb. > > > > Any advice on how or who could fix it would be most appreciated. > > > > Terry Mace > > BAE Systems > > Melbourne, Australia > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >--- >Outgoing mail is certified Virus Free by AVG Anti Virus System. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Nov 18 12:56:25 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 18 Nov 2004 12:56:25 -0600 Subject: [AccessD] Query of query results problem Message-ID: <1375769556091B4DAABC159F944CA1BB07A2DA@bocnte2k4.hou150.chevrontexaco.net> I had to use the csng function on each field in the second query. I was just wondering if this is normal behavior for access or if something else is happening. Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 11:43 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query of query results problem Isn't there something about a calculation inheriting the format of the, what I think of, the simplest format? What if you set the formatting in the second query in the query itself to like a double and specify the number of decimals? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester A Sent: Thursday, November 18, 2004 12:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Query of query results problem I have a query with no formatting in it that generates numbers with various numbers of digits after the decimal place. When I run a query against this query with no number formatting the result in integers (all decimal precision is gone). What is happening here? Chester Kaup Information Management Technician IT-MidContinent/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7415 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Nov 18 12:56:39 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 10:56:39 -0800 Subject: [AccessD] Re: ODBC against Oracle partitioned db In-Reply-To: Message-ID: Hi Patti: Toad is probably the best Oracle manager/designer/developer tool ever built. It has now expanded it's extensive set of features to MS SQL and even MySQL. Check it out: http://www.toadsoft.com/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, November 18, 2004 9:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: ODBC against Oracle partitioned db What is TOAD? I was wondering whether the newest Oracle ODBC driver would solve it. We still have the 9.x one. Thanks Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Robert L. Stewart > Sent: Tuesday, November 16, 2004 02:56 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Re: ODBC against Oracle partitioned db > > As you can see, Access and the ODBC driver has trouble with a > partioned table. > > Use Toad or something like it for the type of things you > would do in running queries and viewing data. Since it is > written for Oracle, it plays with it better. > > Robert > > At 12:01 PM 11/16/2004 -0600, you wrote: > >Date: Tue, 16 Nov 2004 10:28:49 -0500 > >From: "O'Connor, Patricia \(OTDA\)" > > > >Subject: [AccessD] ODBC against Oracle partitioned db > >To: "Access Developers discussion and problem solving" > > > >Message-ID: > > > > >Content-Type: text/plain; charset="us-ascii" > > > >Hi all > > > >When I use the Oracle ODBC driver against an ORACLE un-partitioned > >table from Access (either passthru or gui), I have not problem. Data > >comes back can scroll through 1-30+K records no problem. > > > >When I use same driver against an Oracle partitioned table > from access, > >I get temporary freeze ups when scrolling through records even > >scrolling from column 1 to say col 10 on screen. It doesn't > matter how > >many records in set - scroll down 3-6 records - stop. Sometimes the > >stall can be 2-5 minutes. > > > >Doesn't matter if it is the only thing running on computer. I do not > >have this problem with an unpartioned set. I waste a good amount of > >time waiting for access to let me back in. > > > >Has anyone run into this and is there a workaround or > setting I need to > >change in the driver configuration. My machine is Win2k, Access2k, > >Oracle10 > > > >Thanks in advance > >Patti > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Thu Nov 18 13:11:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 11:11:14 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: <001d01c4cda2$62c28dd0$6501a8c0@delllaptop> The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From GregSmith at starband.net Thu Nov 18 14:44:35 2004 From: GregSmith at starband.net (Greg Smith) Date: Thu, 18 Nov 2004 14:44:35 -0600 (CST) Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> References: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> Message-ID: <2249.65.118.249.206.1100810675.squirrel@cetus.email.starband.net> Mark: Do any of the groups/users in the two different MDW's have the same PID's? Or were both mdw files created independently? If the latter is true, you might be hosed. I'm ASSuming (dangerous word) that both apps and data sets are using full MS Access security. The next question (or continuing) then, if they both are fully independent, how do you get data from one to the other? You have to somehow combine the mdw's (create new users/groups in one mdw from the other mdw using the PIDs from the other mdw) and then one MDW file would be used for both apps. "Bit of a pain..." is an understatement. I don't know your full setup, but another option would be (warning: this is a cobble...) to create a third UNSECURED db for the data, export data to it from the one database, then import from it into the other database. That way all the exporting and importing is done from the secured db's and they, technically, don't 'see' each other or their security. However, your exported/imported data, while in the unsecured database, is just that...unsecured. You didn't say whether this was a one time deal or an ongoing process, so that may also figure into what you need to do as well. Well, that's MY two cents worth. Good luck! Greg Smith gregsmith at starband.net > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into the > other but am having problems as they are secured on different mdw's. I > could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? > > Thanks in advance > > Mark > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From GregSmith at starband.net Thu Nov 18 15:01:05 2004 From: GregSmith at starband.net (Greg Smith) Date: Thu, 18 Nov 2004 15:01:05 -0600 (CST) Subject: [AccessD] Corrupt Data File In-Reply-To: References: <013701c4cd19$55bd91e0$fa10a8c0@Albatross> Message-ID: <2284.65.118.249.206.1100811665.squirrel@cetus.email.starband.net> Terry: Look at http://support.microsoft.com/default.aspx?scid=kb;en-us;158933 for some help...although it's not help really...it just tells you how hosed you really are. I had a client who got this error message and there was absolutely nothing we could do with it. The backend data was corrupted beyond repair. We couldn't even import the data out of it. She had to go and use the last backup, which I conveniently had a copy of, but it was over two weeks old. Her tape drive had not been working right (and she knew it...but put off getting it fixed...) so her backup was missing over two weeks of data they had to reenter. I hope this is NOT the case for you, but, judging from the Microsoft article, I don't hold out much hope. Good luck! Greg Smith gregsmith at starband.net >> > Help!! >> > >> > I have a store management database application in Ac97 and last >> night >>the >> > back end data file was corrupted. I have run the Ac97 repair tool >> and >>also >> > Jetcomp.exe on the file and they both say the file is OK. >> > >> > The problem is when I attempt to open it I get the following >> message: >> > >> > "'Index1' isn't an index in this table. Look in the indexes >> collection >>of >> > the TableDef object to determine the valid index names." OK /HELP >> > >> > Clicking on the OK button just terminates the opening process. Due >> to >>an >> > undiscovered (until now!) quirk in our backup system, this file has >>never >> > been backed up. The file size is 7.2Mb and contains about 7000 >> records. >>A >> > zipped copy is about 1.6Mb. >> > >> > Any advice on how or who could fix it would be most appreciated. >> > >> > Terry Mace >> > BAE Systems >> > Melbourne, Australia From lists at theopg.com Thu Nov 18 15:32:43 2004 From: lists at theopg.com (MarkH) Date: Thu, 18 Nov 2004 21:32:43 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <2249.65.118.249.206.1100810675.squirrel@cetus.email.starband.net> Message-ID: <001701c4cdb6$24b39f70$0e0b6bd5@netboxxp> Greg 1) Both mdw files were created independantly and both backends are fully secured (I do have full access on each) 2) I was hoping to avoid merging the workgroups, but if I have to then luckilly one has less than ten users 3) A temporary unsecured database is out of the question unfortunately due to the nature of the data ... I have read, since posting my original message, that the desired result "could" possibly be achieved by creating an access application variable within one of the front-ends that uses a connection string to the other backend which includes workgroup and login details. I would like to avoid this as it seems clumsy, haven't tried it yet though... Looks like merging the two mdw's will be the best bet... Never mind :O) Thanks very much for the suggestions Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: 18 November 2004 20:45 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup Mark: Do any of the groups/users in the two different MDW's have the same PID's? Or were both mdw files created independently? If the latter is true, you might be hosed. I'm ASSuming (dangerous word) that both apps and data sets are using full MS Access security. The next question (or continuing) then, if they both are fully independent, how do you get data from one to the other? You have to somehow combine the mdw's (create new users/groups in one mdw from the other mdw using the PIDs from the other mdw) and then one MDW file would be used for both apps. "Bit of a pain..." is an understatement. I don't know your full setup, but another option would be (warning: this is a cobble...) to create a third UNSECURED db for the data, export data to it from the one database, then import from it into the other database. That way all the exporting and importing is done from the secured db's and they, technically, don't 'see' each other or their security. However, your exported/imported data, while in the unsecured database, is just that...unsecured. You didn't say whether this was a one time deal or an ongoing process, so that may also figure into what you need to do as well. Well, that's MY two cents worth. Good luck! Greg Smith gregsmith at starband.net > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? > > Thanks in advance > > Mark > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From markamatte at hotmail.com Thu Nov 18 15:44:11 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 18 Nov 2004 21:44:11 +0000 Subject: [AccessD] IMESentenceMode gremlin In-Reply-To: Message-ID: Paul, I would open the vba window and compile all modules...something might be missing under 'TOOLS_REFERENCES'. Hope it helps, Mark A. Matte >From: Paul Rodgers >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] IMESentenceMode gremlin >Date: Wed, 17 Nov 2004 09:29:12 -0000 > >A slight change to a cmd button on a form has Access offering a fault, 'You >entered an expression that has an invalid reference to the property >IMESentenceMode'. > >The debug highlight is of an unrelated, unchanged piece of code. > >Anyone been here, please, and answered this seemingly strange error. Cheers >paul > >-- >_______________________________________________ >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 Nov 18 16:05:28 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:05:28 +1100 Subject: [AccessD] A2003:Test Voracity of URLS - Repost In-Reply-To: Message-ID: <200411182205.iAIM5edQ014590@cooper.uws.edu.au> Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ 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 Nov 18 16:10:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:10:39 +1100 Subject: Svar: [AccessD] A2003:Test Voracity of URLS In-Reply-To: <419CEED5.3000105@torchlake.com> Message-ID: <200411182210.iAIMApdQ018173@cooper.uws.edu.au> Hi Tina Well spotted - slip of the 'vowels' ((That's a slip of the consonants:-)) Should be an e not an o By the way I ended up using Link Sleuth - it's free and it's fast Thanks to all who responded DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Friday, 19 November 2004 5:50 AM To: Access Developers discussion and problem solving Subject: Re: Svar: [AccessD] A2003:Test Voracity of URLS Okay, I can't resist any longer - didn't anybody else laugh about this subject line? How hungry does a URL have to be before it becomes voracious and we have to test its voracity? LOL Tina Jim Lawrence (AccessD) wrote: >General comment > >Any file extension and file name can be setup as default initial web >site code. Html (variations htm, htlms...), and is just one extension >type but 'pl' (perl), 'asp and aspx' asp/net, 'php', 'jsp', 'xml' to >name a few, are just as valid and standard. As for names, anything >goes. The most common are of course 'index', but 'homepage' is a >standard when using MS FP. It is all set up on your IIS or Apache, in >the properties per hosted web site. Most sites are fairly standard but >I have seen some odd variations over the years. In a nutshell, everything goes. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, November 18, 2004 1:42 AM >To: accessd at databaseadvisors.com >Subject: RE: Svar: [AccessD] A2003:Test Voracity of URLS > > >Hi Darren > >Not quite sure what you are doing. It will return one result only ... >index.htm is chosen as any site has this page. By second thought, >index.html is possible too, but I don't know (do we have a web guru >present?) - perhaps the function should be expanded to check for any of >these two files? > >/gustav > > > >>>>d.dick at uws.edu.au 18-11-2004 01:58:27 >>> >>>> >>>> > >Hi Gustav >Many thanks >I'm not sure how to use the code though :-(( I get odd results > >When I put isUrl ("http://www.ibm.com") behind a button on a form and >put debug.print IsURL at the end of Public Function IsURL I get "true" >If I put msgbox IsYrl at the end of Public Function IsURL I get false >?? >Dunno what it all means > >http://www.ibm.com is a valid and live website How do it know if there >will be an index.htm file at the other end? >And how come I get differeing results with MSGBOX and Debug.print? > >Obviously doing something wrong > >Many thanks in advance > >Darren > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, 17 November 2004 8:36 PM >To: accessd at databaseadvisors.com >Subject: Svar: [AccessD] A2003:Test Voracity of URLS > >Hi Darren > >We use these functions: > > > >Private Declare Function URLDownloadToFile Lib "urlmon" Alias >"URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > >Public Function IsURL(ByVal strURL As String) As Boolean > >' Usage: Check if URL strURL is alive and reachable. >' booURL = IsURL("http://www.ibm.com") >' booURL = IsURL("ftp://ftp.novell.com") >' >' Note: Protocol header like "http://" must be provided. >' >' 2001-12-09. Cactus Data ApS. CPH. > > ' File found at most URLs. > Const cstrFileIndex As String = "index.htm" > > IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) > >End Function > > > >If your URLs contains html document name you will have to modify the >code to use that and not append index.html. > >/gustav > > > >>>>d.dick at uws.edu.au 17-11-2004 05:03:08 >>> >>>> >>>> > >I have an educational client who has a CD full of Education URL's >(Zillion's of 'em) Occasionally someone has to test to see if the links >are broken or not (Manually ) > >I thought this would be a perfect application for Access Set up a table >of URLs and loop through 'em and return TRUE or FALSE > >So...Is there a way I can type in >say...http://somewebsite.someserver.com.au >and return "true" if the site exists or "false" if the site does not >exist. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 Nov 18 16:41:27 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 19 Nov 2004 09:41:27 +1100 Subject: [AccessD] Updatable UNION? In-Reply-To: <20041118115010.AB95725D353@smtp.nildram.co.uk> Message-ID: <200411182241.iAIMfedQ013637@cooper.uws.edu.au> Hi Andy How are things?? Say Hello to your lovely for me In cases like this in the on_click of a check box I just look at its current value. Then run a query based on the opposite value then refresh or Requery the screen Eg If Me.chkCheckBox = -1 then docmd.openquery "upd_qryThatChangesTheValueForThisRecordToZero ElseIf Me.chkCheckBox = 0 then docmd.openquery "upd_qryThatChangesTheValueForThisRecordToMinus1 End if Me.requery And if needed set a bookmark or global so you can return to the Relavant record after a requery Hope this helps And we'll see you.........:-))) DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, 18 November 2004 9:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updatable UNION? Feared that might be the case. Ah well, always worth asking the list cos if there's a way someone here will know it. Thanks for the response Gustav. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Updatable UNION? Date: 18/11/04 10:59 > > Hi Andy > > No, unions are read-only. If you can't go the update-behind-requery > route, I guess you are left with the temp table. > > /gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 > >>> > > Morning all > I've a continuous screen which needs to list two types of order in > date sequence. These are held on separate tables. No problem, a UNION > query does the job fine. However the user has to tick an order to say > it's despatched, and then the screen needs to show that information, > but the recordset is not updatable. Presumably this applies to all > UNION queries does it? Does anyone have a way round this or do I have > to go to extracting to a temp table and all that jazz? > > By the way it's not practical to upodate the underlying tables and > requery to display the depatch info because there's a lot of data on > screen and requerying takes too long. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > -- > _______________________________________________ > 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 martyconnelly at shaw.ca Thu Nov 18 19:50:59 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 17:50:59 -0800 Subject: [AccessD] For Trainee BOFH's References: <200411182210.iAIMApdQ018173@cooper.uws.edu.au> Message-ID: <419D5183.2070209@shaw.ca> Those of you working on your BOFH certification might find this piece of code useful Or if you really want to get all those users out of your database so you can work on it. Or if you really want to renew a dhcp lease. You can run from vbs or Access VBA Here's a way to reboot a list of systems with a single keystroke. Replace the contents of the code between "Else" and "End if" statements in the script below that (renews DHCP leases on all computers) with the following: Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") objTextFile.WriteLine(strComputer & " is rebooting.") For Each objOperatingSystem in colOperatingSystems ObjOperatingSystem.Reboot() Next 'computer.txt' is a file that contains a list of all network machine names ' well aside from your own. RebootFile = "computers.txt" LogFile = "results.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(RebootFile, 1, True) Set objTextFile = fso.OpenTextFile(LogFile, 2, True) On Error resume next Do While f.AtEndOfLine <> True strComputer = f.ReadLine Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") If Err.Number <> 0 Then objTextFile.WriteLine(intCount & ". " & strComputer & " is not responding.") Err.Clear Else Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") objNetworkSettings.RenewDHCPLeaseAll() objTextFile.WriteLine(strComputer & " has been renewed.") End If Loop -- Marty Connelly Victoria, B.C. Canada From clh at christopherhawkins.com Thu Nov 18 20:04:24 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 18 Nov 2004 19:04:24 -0700 Subject: [AccessD] ActiveX control for capturing a signature? Message-ID: <48860-22004115192424187@christopherhawkins.com> A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From jmhla at earthlink.net Thu Nov 18 20:04:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 18:04:54 -0800 Subject: [AccessD] For Trainee BOFH's In-Reply-To: <419D5183.2070209@shaw.ca> Message-ID: <001501c4cddc$29bd5670$6501a8c0@delllaptop> I will bite. BOFH? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, November 18, 2004 5:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] For Trainee BOFH's Those of you working on your BOFH certification might find this piece of code useful Or if you really want to get all those users out of your database so you can work on it. Or if you really want to renew a dhcp lease. You can run from vbs or Access VBA Here's a way to reboot a list of systems with a single keystroke. Replace the contents of the code between "Else" and "End if" statements in the script below that (renews DHCP leases on all computers) with the following: Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") objTextFile.WriteLine(strComputer & " is rebooting.") For Each objOperatingSystem in colOperatingSystems ObjOperatingSystem.Reboot() Next 'computer.txt' is a file that contains a list of all network machine names ' well aside from your own. RebootFile = "computers.txt" LogFile = "results.txt" Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(RebootFile, 1, True) Set objTextFile = fso.OpenTextFile(LogFile, 2, True) On Error resume next Do While f.AtEndOfLine <> True strComputer = f.ReadLine Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") If Err.Number <> 0 Then objTextFile.WriteLine(intCount & ". " & strComputer & " is not responding.") Err.Clear Else Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") objNetworkSettings.RenewDHCPLeaseAll() objTextFile.WriteLine(strComputer & " has been renewed.") End If Loop -- 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 jmhla at earthlink.net Thu Nov 18 20:05:37 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 18 Nov 2004 18:05:37 -0800 Subject: [AccessD] ActiveX control for capturing a signature? In-Reply-To: <48860-22004115192424187@christopherhawkins.com> Message-ID: <001601c4cddc$46a73940$6501a8c0@delllaptop> Look at point of sales sites maybe? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Thursday, November 18, 2004 6:04 PM To: accessd at databaseadvisors.com Subject: [AccessD] ActiveX control for capturing a signature? A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Thu Nov 18 20:26:20 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 18 Nov 2004 21:26:20 -0500 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <000f01c4cd9c$6f150fa0$0e0b6bd5@netboxxp> References: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <419D137C.19277.573D8F@localhost> On 18 Nov 2004 at 18:28, MarkH wrote: > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? Create a new DAO workspace Private mwks As DAO.Workspace 'Workspace for the DB's to be opened in Private mdbBE As DAO.Database 'BE DB Reference 'Open the Workspace Set mwks = CreateWorkspace("AnyName", "UserName", "PassWord") 'Set Reference to BE, opened Exclusively Set mdbBE = mwks.OpenDatabase(Me.BEPath, True, False, Me.BEPassword) Now the mdbBE dao database object can be refered to just like you would with any other DAO database object. This is the approach that we took with the Alpha version of the BackEnd Upgrader that deals with back ends that were secured with Jet Security. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From martyconnelly at shaw.ca Thu Nov 18 20:37:20 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 18:37:20 -0800 Subject: [AccessD] For Trainee BOFH's References: <001501c4cddc$29bd5670$6501a8c0@delllaptop> Message-ID: <419D5C60.2010609@shaw.ca> How to get an upgrade, BOFH-style http://www.theregister.co.uk/2004/01/17/how_to_get_an_upgrade/ There is a couple of years worth of articles here http://www.theregister.co.uk/odds/bofh/ Oh yes BOFH Bastard Operator From Hell Joe Hecht wrote: >I will bite. BOFH? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, November 18, 2004 5:51 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] For Trainee BOFH's > > Those of you working on your BOFH certification might find this piece >of code useful >Or if you really want to get all those users out of your database so you >can work on it. >Or if you really want to renew a dhcp lease. > >You can run from vbs or Access VBA > >Here's a way to reboot a list of systems with a single keystroke. >Replace the contents of the code between "Else" and "End if" statements >in the script below that (renews DHCP leases on all computers) with >the following: > > Set colOperatingSystems = objWMIService.ExecQuery("Select * from >Win32_OperatingSystem") > objTextFile.WriteLine(strComputer & " is rebooting.") > For Each objOperatingSystem in colOperatingSystems > ObjOperatingSystem.Reboot() >Next > > >'computer.txt' is a file that contains a list of all network machine names >' well aside from your own. > >RebootFile = "computers.txt" >LogFile = "results.txt" > >Set fso = CreateObject("Scripting.FileSystemObject") >Set f = fso.OpenTextFile(RebootFile, 1, True) >Set objTextFile = fso.OpenTextFile(LogFile, 2, True) > >On Error resume next >Do While f.AtEndOfLine <> True > strComputer = f.ReadLine >Set objWMIService = GetObject("winmgmts:" & >"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") >If Err.Number <> 0 Then > objTextFile.WriteLine(intCount & ". " & strComputer & " is not >responding.") > Err.Clear >Else >Set objNetworkSettings = >objWMIService.Get("Win32_NetworkAdapterConfiguration") > objNetworkSettings.RenewDHCPLeaseAll() > objTextFile.WriteLine(strComputer & " has been renewed.") >End If >Loop > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Nov 18 20:40:55 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 18:40:55 -0800 Subject: [AccessD] For Trainee BOFH's References: <001501c4cddc$29bd5670$6501a8c0@delllaptop> Message-ID: <419D5D37.6040607@shaw.ca> Or try here for usenet definition http://www.comedia.com/hot/jargon-4.2.3/html/entry/BOFH.html Joe Hecht wrote: >I will bite. BOFH? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, November 18, 2004 5:51 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] For Trainee BOFH's > > Those of you working on your BOFH certification might find this piece >of code useful >Or if you really want to get all those users out of your database so you >can work on it. >Or if you really want to renew a dhcp lease. > >You can run from vbs or Access VBA > >Here's a way to reboot a list of systems with a single keystroke. >Replace the contents of the code between "Else" and "End if" statements >in the script below that (renews DHCP leases on all computers) with >the following: > > Set colOperatingSystems = objWMIService.ExecQuery("Select * from >Win32_OperatingSystem") > objTextFile.WriteLine(strComputer & " is rebooting.") > For Each objOperatingSystem in colOperatingSystems > ObjOperatingSystem.Reboot() >Next > > >'computer.txt' is a file that contains a list of all network machine names >' well aside from your own. > >RebootFile = "computers.txt" >LogFile = "results.txt" > >Set fso = CreateObject("Scripting.FileSystemObject") >Set f = fso.OpenTextFile(RebootFile, 1, True) >Set objTextFile = fso.OpenTextFile(LogFile, 2, True) > >On Error resume next >Do While f.AtEndOfLine <> True > strComputer = f.ReadLine >Set objWMIService = GetObject("winmgmts:" & >"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") >If Err.Number <> 0 Then > objTextFile.WriteLine(intCount & ". " & strComputer & " is not >responding.") > Err.Clear >Else >Set objNetworkSettings = >objWMIService.Get("Win32_NetworkAdapterConfiguration") > objNetworkSettings.RenewDHCPLeaseAll() > objTextFile.WriteLine(strComputer & " has been renewed.") >End If >Loop > > > -- Marty Connelly Victoria, B.C. Canada From lists at theopg.com Fri Nov 19 03:17:00 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 09:17:00 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <419D137C.19277.573D8F@localhost> Message-ID: <000001c4ce18$88012590$0e0b6bd5@netboxxp> Hello Bryan... Thanks for the suggestion, not quite sure on a couple of things though... I assume that, from "me.BEPassword" the user enters their username and password on screen? I'm not sure how this gets passed the mdw security? The front-end that is requesting the data belongs to a different mdw so even though I passed the correct username and password I still get refused access because the connection request is being made whilst joined to a different mdw. I have tried specifying the mdw in the connection string but either its not possible or I'm getting the format wrong :@( Is it possible to specify a different mdw? Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 19 November 2004 02:26 To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup On 18 Nov 2004 at 18:28, MarkH wrote: > Hello All (I sent his yesterday but it didn';t seem to get through...) > > Using AXP on WinXP > > I have two databases secured on different workgroups and accessed from > different front ends. I need to be able to import data from one into > the other but am having problems as they are secured on different > mdw's. I could merge the two mdw's but that would be a bit of a pain. > > Anyone know a simple solution? Create a new DAO workspace Private mwks As DAO.Workspace 'Workspace for the DB's to be opened in Private mdbBE As DAO.Database 'BE DB Reference 'Open the Workspace Set mwks = CreateWorkspace("AnyName", "UserName", "PassWord") 'Set Reference to BE, opened Exclusively Set mdbBE = mwks.OpenDatabase(Me.BEPath, True, False, Me.BEPassword) Now the mdbBE dao database object can be refered to just like you would with any other DAO database object. This is the approach that we took with the Alpha version of the BackEnd Upgrader that deals with back ends that were secured with Jet Security. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ 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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From lists at theopg.com Fri Nov 19 03:55:50 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 09:55:50 -0000 Subject: [AccessD] Accessing data in secured mdb from another ... Clumsy fix - comments please In-Reply-To: <000001c4ce18$88012590$0e0b6bd5@netboxxp> Message-ID: <000101c4ce1d$f4c3c2a0$0e0b6bd5@netboxxp> Hello again... I can establish (fairly easilly) a connection using the following method: Dim app As Access.Application Dim db As DAO.Database Set app = New Access.Application app.SetDefaultWorkgroupFile "pathToMDW" app.OpenCurrentDatabase "pathToSecuredMDB" 'login prompt displayed '... Set rs etc... This works, but I'm concerned that working with a database this way may invite problems (never had to do it like this before). The clients network is one of the slowest I ever worked with and I would like to avoid potentially locking up a machine while the app etc. is being accessed. Anyone out there have experience of this method and what to look out for? Many thanks Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From lists at theopg.com Fri Nov 19 04:28:20 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 10:28:20 -0000 Subject: [AccessD] Accessing data in secured mdb from another ... Used ADODB In-Reply-To: <000101c4ce1d$f4c3c2a0$0e0b6bd5@netboxxp> Message-ID: <000201c4ce22$7ebf6960$0e0b6bd5@netboxxp> Doh... Completely forgot about ADO as I havent used it for quite a while... Nice and easy and no need for a separate application object, just specified the mdw in the connection properties and prompted user to enter login details :@) Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From carbonnb at sympatico.ca Fri Nov 19 04:30:51 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 19 Nov 2004 05:30:51 -0500 Subject: [AccessD] Accessing data in secured mdb from another secured mdbon a different workgroup In-Reply-To: <000001c4ce18$88012590$0e0b6bd5@netboxxp> References: <419D137C.19277.573D8F@localhost> Message-ID: <419D850B.22905.20D64E@localhost> On 19 Nov 2004 at 9:17, MarkH wrote: > Hello Bryan... Thanks for the suggestion, not quite sure on a couple > of things though... > > I assume that, from "me.BEPassword" the user enters their username and > password on screen? It could be that they do do that. We had it hardcoded. but that is a password for the BE if it only has a password on it, not Jet security, just a password. > I'm not sure how this gets passed the mdw security? The front-end that > is requesting the data belongs to a different mdw so even though I > passed the correct username and password I still get refused access > because the connection request is being made whilst joined to a > different mdw. I have tried specifying the mdw in the connection > string but either its not possible or I'm getting the format wrong :@( > > Is it possible to specify a different mdw? Aw cr*p. Missed that part completely :( I'm not sure. -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. From lists at theopg.com Fri Nov 19 04:47:54 2004 From: lists at theopg.com (MarkH) Date: Fri, 19 Nov 2004 10:47:54 -0000 Subject: [AccessD] Accessing data in secured mdb from anothersecured mdbon a different workgroup In-Reply-To: <419D850B.22905.20D64E@localhost> Message-ID: <000301c4ce25$3a94ab30$0e0b6bd5@netboxxp> No worries matey... Used ADO and it works just fine :@) Thanks anyway Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: 19 November 2004 10:31 To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Accessing data in secured mdb from anothersecured mdbon a different workgroup On 19 Nov 2004 at 9:17, MarkH wrote: > Hello Bryan... Thanks for the suggestion, not quite sure on a couple > of things though... > > I assume that, from "me.BEPassword" the user enters their username and > password on screen? It could be that they do do that. We had it hardcoded. but that is a password for the BE if it only has a password on it, not Jet security, just a password. > I'm not sure how this gets passed the mdw security? The front-end that > is requesting the data belongs to a different mdw so even though I > passed the correct username and password I still get refused access > because the connection request is being made whilst joined to a > different mdw. I have tried specifying the mdw in the connection > string but either its not possible or I'm getting the format wrong :@( > > Is it possible to specify a different mdw? Aw cr*p. Missed that part completely :( I'm not sure. -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. -- _______________________________________________ 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.769 / Virus Database: 516 - Release Date: 24/09/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From Mark.Mitsules at ngc.com Fri Nov 19 07:47:47 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 19 Nov 2004 08:47:47 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 07:49:20 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 19 Nov 2004 13:49:20 +0000 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". Just a thought... Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Updatable UNION? >Date: Thu, 18 Nov 2004 11:58:03 +0100 > >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > >>> andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Fri Nov 19 07:57:55 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 19 Nov 2004 05:57:55 -0800 (PST) Subject: [AccessD] Search for linked documents.... Message-ID: <20041119135756.42665.qmail@web61104.mail.yahoo.com> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ssharkins at bellsouth.net Fri Nov 19 08:13:18 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 09:13:18 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119141317.WEZQ2400.imf19aec.mail.bellsouth.net@SUSANONE> There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". From william.thompson1 at att.net Fri Nov 19 09:24:08 2004 From: william.thompson1 at att.net (William Thompson) Date: Fri, 19 Nov 2004 07:24:08 -0800 Subject: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? In-Reply-To: <20041119141317.WEZQ2400.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <200411191524.iAJFO9L18806@databaseadvisors.com> Hi, I have a SQL Server front-end that has to be a minimal code solution, and I wanted to open a form, form_someform, with openargs "Edit" or "Add". I don't want the user to have to 'x' out to close the form instance. There would only be the two additional instances. My question is how to handle the close button in the new instance. Am I correct to presume that I have to pass the new instance a reference to itself in order to hand control back to the caller? The call to open the instance would be something like Dim frmSomeTable As Form_SomeTable Set frmSomeTable = New Form_SomeTable Form_SomeTable.Setfocus Set Form_SomeTable = Nothing ''' I think the new instance needs a Method like public sub InstanceIt(TheCaller as form) Set m_frmThis = Me Set m_frmCaller = TheCaller Me.Visible = True end sub ''' So eventually I'd like to somehow have a command button that closes the form sort of like.. Private Sub cmdCloseThis() ''' Set m_frmThis = Nothing ''' Or I guess it has to be ''' HandItBackToTheCaller me.Hide m_frmCaller.SetFocus End Sub ''' Caller's Code continued ... Set Form_SomeTable = Nothing This won't work though will it ? I'm a little fuzzy on it, any help appreciated. Bill From Gustav at cactus.dk Fri Nov 19 09:33:27 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Nov 2004 16:33:27 +0100 Subject: [AccessD] Control reference question. Message-ID: Hi Bobby Always use the syntax stated here (one line): http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGuide/SyntaxForSubs.htm Other methods may work (as you have demonstrated) but they are generally not considered good programming practice. "Svar:" is Danish for "Re:". We have moved to a brand new GroupWise 6.5 system (boy, this rocks) and currently I'm running the Danish localisation ... haven't found out yet how to adjust this detail. /gustav >>> bheid at appdevgrp.com 18-11-2004 19:26:38 >>> Gustav, Yes, that works also. Why would I need to put .Report on the end? It already knows it is in the Reports collection? I have never seen anything like that when referencing something on a form either? Is there a .Form for the forms? Also, what is Svar in the subject? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 12:37 PM To: accessd at databaseadvisors.com Subject: Svar: RE: [AccessD] Control reference question. Hi Bobby What happens if you try? The use of .Report should be the recommended syntax ... /gustav >>> bheid at appdevgrp.com 18-11-2004 17:30:50 >>> I dunno, it works as I have it. I have never used Report on the end like you have it. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 11:09 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Shouldn't it read: With Reports!Closeout!Closeout_GL_sub.Report If !txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With /gustav >>> bheid at appdevgrp.com 18-11-2004 16:53:24 >>> Now this is really weird. I played with it for over an hour yesterday and could not get it to work no matter how I changed it. I went back in a few minutes ago and changed the code from: With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then !txtGLEstPayroll.FONTBOLD = True !txtGLFinalPayroll.FONTBOLD = True Else !txtGLEstPayroll.FONTBOLD = False !txtGLFinalPayroll.FONTBOLD = False End If End With TO With Reports!Closeout!Closeout_GL_sub If txtSetBold <> 0 Then txtGLEstPayroll.FONTBOLD = True txtGLFinalPayroll.FONTBOLD = True Else txtGLEstPayroll.FONTBOLD = False txtGLFinalPayroll.FONTBOLD = False End If End With And it now works. I hate it when Access does this to me. Thanks all. Bobby From Stephen.Pickering at caremark.com Fri Nov 19 09:39:30 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Fri, 19 Nov 2004 09:39:30 -0600 Subject: [AccessD] Updatable UNION? Message-ID: <35C4AC5A5AFD9642833200159C258156A32C7D@s98026.psd.caremark.int> IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. Steve ----- Susan Harkins' Original Message----- There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Nov 19 09:43:38 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 19 Nov 2004 09:43:38 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <000e01c4ce4e$8a192090$de1811d8@danwaters> I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems From bheid at appdevgrp.com Fri Nov 19 09:46:53 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 19 Nov 2004 10:46:53 -0500 Subject: [AccessD] Control reference question. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2B9B3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB9FE@ADGSERVER> Thanks for the link. Printing it now. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, November 19, 2004 10:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Control reference question. Hi Bobby Always use the syntax stated here (one line): http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm Other methods may work (as you have demonstrated) but they are generally not considered good programming practice. "Svar:" is Danish for "Re:". We have moved to a brand new GroupWise 6.5 system (boy, this rocks) and currently I'm running the Danish localisation ... haven't found out yet how to adjust this detail. /gustav From JColby at dispec.com Fri Nov 19 09:47:21 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 19 Nov 2004 10:47:21 -0500 Subject: [AccessD] Finite instances of form in Edit, Add modes - Clos e cmdButton? Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF999@DISABILITYINS01> A form opened in this manner has to have a pointer to the form stored somewhere in order to remain open. As soon as the last pointer to that form is set to nothing, the form will close. One way to keep the form open is to pass the pointer to the form in to the form, where it stores the pointer to itself in its header. The close button does nothing more than set that pointer = nothing. That allows the form to close itself. It is not possible to pass pointers as openagrs, the data type of an openarg is a string. Thus you have to build a public function in the form being opened that can be called and a pointer passed in, or the form being opened has to reach back to the opening form and ask for the pointer to itself. The other way is to have the calling form to store the pointer to the form, but now the calling form has to close the new form by setting the pointer to nothing. Does all this make sense? John W. Colby The DIS Database Guy -----Original Message----- From: William Thompson [mailto:william.thompson1 at att.net] Sent: Friday, November 19, 2004 10:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? Hi, I have a SQL Server front-end that has to be a minimal code solution, and I wanted to open a form, form_someform, with openargs "Edit" or "Add". I don't want the user to have to 'x' out to close the form instance. There would only be the two additional instances. My question is how to handle the close button in the new instance. Am I correct to presume that I have to pass the new instance a reference to itself in order to hand control back to the caller? The call to open the instance would be something like Dim frmSomeTable As Form_SomeTable Set frmSomeTable = New Form_SomeTable Form_SomeTable.Setfocus Set Form_SomeTable = Nothing ''' I think the new instance needs a Method like public sub InstanceIt(TheCaller as form) Set m_frmThis = Me Set m_frmCaller = TheCaller Me.Visible = True end sub ''' So eventually I'd like to somehow have a command button that closes the form sort of like.. Private Sub cmdCloseThis() ''' Set m_frmThis = Nothing ''' Or I guess it has to be ''' HandItBackToTheCaller me.Hide m_frmCaller.SetFocus End Sub ''' Caller's Code continued ... Set Form_SomeTable = Nothing This won't work though will it ? I'm a little fuzzy on it, any help appreciated. Bill -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 10:28:20 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:28:20 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Nov 19 10:28:07 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 19 Nov 2004 11:28:07 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: References: Message-ID: <419E1F17.4060700@rogers.com> I wouldn't be quite that hasty, Gustav. You are of course correct that UNIONs are read-only, but you can certainly grab the PK, pop up a form that permits the update, and Refresh rather than Requery. I've done this particular thing several times and it works a treat. Arthur Gustav Brock wrote: >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> >>>> >>>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk > > > From cfoust at infostatsystems.com Fri Nov 19 10:30:56 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:30:56 -0800 Subject: [AccessD] Updatable UNION? Message-ID: Unions are not updatable by definition, Susan, no matter what tricks you use. In a Union, there is no distinction between the tables the fields come from and the names don't even have to match,just the datatypes, so there's no way to update any of the data. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, November 19, 2004 6:13 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Updatable UNION? There is some odd trick in the back of my mind that I just can't quite remember... Is there some trick about adding ALL to a UNION that makes it updateable? I know, I'm probably crackers -- and I'm probably confusing this with something else. All of my books are in storage and I can't even try to look it up. :( Susan H. Andy, This might sound like dancing around this issue...but could you have user click on the record to be updated...open a second query/form for just that record...save the record...and the give a message, "Your update has been saved and will be reflected next time you refresh the screen". -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 10:37:18 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:37:18 -0800 Subject: [AccessD] ActiveX control for capturing a signature? Message-ID: You need additional hardware to capture the signature. The kind of hardware determines the software and the OCX you use. We use the Topaz SigLite pads, chosen in part because they are compatible with Access and their support is good. Warning: programming this stuff and making it work is tricky! There are also security considerations. Are the users willing to have their signatures stored somewhere for an indeterminate period and with unknown security? We store sigs only long enough to produce PDF documents containing the signed reports and then destroy the signature string, which is captured in a table. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Thursday, November 18, 2004 6:04 PM To: accessd at databaseadvisors.com Subject: [AccessD] ActiveX control for capturing a signature? A client of mine has cobbled together a rickety Access app that runs on a touch screen monitor. He has his customers fill out a customer satisfactions surveyo it by pressing buttons to select 1-10 ratings on various elements of his service. It's pretty clever. However, he's not content to stop there. He wants to provide a stylus and have the customer sign their name to the survey right there on the screen, and have the signatuire be stored as an OLE Object or as an image file someplace.. I'm sure there's got to be an ActiveX control out there that will capture this kind of input. But I don't even know where to start looking for it. Anyone do anything like this before? -Chistopher- Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.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 Nov 19 10:39:23 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 08:39:23 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From ssharkins at bellsouth.net Fri Nov 19 10:40:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 11:40:23 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: <35C4AC5A5AFD9642833200159C258156A32C7D@s98026.psd.caremark.int> Message-ID: <20041119164047.HUBM2443.imf18aec.mail.bellsouth.net@SUSANONE> Yeah, I just have this nagging little "tip" that I can't seem to fully remember -- and it may not have anything to do with making UNION updateable, but rather using UNION in some other non-traditional manner. I hate having everything boxed up. :( Susan H. IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. From JColby at dispec.com Fri Nov 19 10:49:39 2004 From: JColby at dispec.com (Colby, John) Date: Fri, 19 Nov 2004 11:49:39 -0500 Subject: [AccessD] Form Sub form Problem Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF99C@DISABILITYINS01> Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Nov 19 10:52:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Nov 2004 17:52:39 +0100 Subject: [AccessD] Updatable UNION? Message-ID: Hi Andy OK, if that works, Andy would be fine. I haven't tried myself, just noted that a requery was out of the qestion: >By the way it's not practical to upodate the underlying tables and requery >to display the depatch info because there's a lot of data on screen and >requerying takes too long. /gustav >>> artful at rogers.com 19-11-2004 17:28:07 >>> I wouldn't be quite that hasty, Gustav. You are of course correct that UNIONs are read-only, but you can certainly grab the PK, pop up a form that permits the update, and Refresh rather than Requery. I've done this particular thing several times and it works a treat. Arthur Gustav Brock wrote: >Hi Andy > >No, unions are read-only. If you can't go the update-behind-requery >route, I guess you are left with the temp table. > >/gustav > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> >>>> >>>> > >Morning all >I've a continuous screen which needs to list two types of order in >date >sequence. These are held on separate tables. No problem, a UNION query >does >the job fine. However the user has to tick an order to say it's >despatched, >and then the screen needs to show that information, but the recordset >is not >updatable. Presumably this applies to all UNION queries does it? Does >anyone >have a way round this or do I have to go to extracting to a temp table >and >all that jazz? > >By the way it's not practical to upodate the underlying tables and >requery >to display the depatch info because there's a lot of data on screen >and >requerying takes too long. > >-- >Andy Lacey >http://www.minstersystems.co.uk From jmhla at earthlink.net Fri Nov 19 10:50:54 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 08:50:54 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191652.iAJGqwL31758@databaseadvisors.com> Hey Charlotte, I doubt it but I have a signed work order and a third person paying me so I feel secure. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 8:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 11:28:26 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 09:28:26 -0800 Subject: [AccessD] Updatable UNION? Message-ID: Are you thinking of the tip on using a UNION to add an "ALL" selection to a dropdown list? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, November 19, 2004 8:40 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Updatable UNION? Yeah, I just have this nagging little "tip" that I can't seem to fully remember -- and it may not have anything to do with making UNION updateable, but rather using UNION in some other non-traditional manner. I hate having everything boxed up. :( Susan H. IIRC, UNION ALL doesn't make the query updateable, it just returns all records from the unioned tables, without eliminating duplicate records. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 19 11:30:30 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 09:30:30 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 hudsonhealthplan.org Fri Nov 19 11:27:52 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 19 Nov 2004 12:27:52 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B31@TTNEXCHCL2.hshhp.com> We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 11:43:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 19 Nov 2004 11:43:43 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411191729.iAJHTDL09065@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041119114207.03b1e520@pop3.highstream.net> Or, start translating the reports and installing new fonts if they are required for the language. Then, get ready to run the reports from their own MDB because of the number of them. Robert At 11:29 AM 11/19/2004 -0600, you wrote: >Date: Fri, 19 Nov 2004 08:28:20 -0800 >From: "Charlotte Foust" >Subject: RE: [AccessD] Selecting Languages - English or Spanish or > Something >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems From donald.a.Mcgillivray at mail.sprint.com Fri Nov 19 11:53:44 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Fri, 19 Nov 2004 11:53:44 -0600 Subject: [AccessD] Need a summary query to return more than one record for amember of a group Message-ID: <988E2AC88CCB54459286C4077DB662F502858655@PDAWB03C.ad.sprint.com> Thanks, Gustav! That should do the trick. Never thought of using the Top N in this way. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 18, 2004 10:07 AM To: accessd at databaseadvisors.com Subject: [AccessD] Need a summary query to return more than one record for amember of a group Hi Don You need to, for each record, look up the date/time of the next entry and calculate the minutes: lngMinutes: DateDiff("n", InsertTime, (Select Top 1 T.InsertTime From tblTable As T Where T.InsertTime > tblTable.InsertTime Order By T.InsertTime Asc) The sum the minutes by grouping in another query where you use the above as source. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 18-11-2004 18:11:37 >>> Hi, All I have a table of data, populated by an automated mail insertion system, containing the following fields: JobID MachineID OperatorID PieceID InsertTime (Date + Time) The system writes a record for each piece that is inserted by the system. Typically, there will be a single operator working a job on a machine, but on larger jobs an operator's shift may be interrupted by another operator (relief during breaks, technicians making adjustments, repairs, etc.) When these interruptions occur, the interrupter logs in and any work processed during the interruption is logged under the interrupter's ID. Then when the original operator returns, s/he logs in and subsequent work is logged under that ID. A summary query grouped on JobID, MachineID, and OperatorID, with count of PieceID and min and max of InsertTime gives me a single record for each operator showing piece count and start and end time. However, the delta between the min and max times does not reflect the actual elapsed time for each, since the original operator's min and max times encompass the period when the interrupter was logged in as well. I know I could loop thru the records incrementing counters and write a record to a table when a change in operator is detected, but my preference is to capture elapsed run time for each operator using a single query. Anybody know if/how I can return more than one record for a member of a group in a summary query? Don McGillivray Sprint Mailing Services -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Nov 19 11:53:27 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 19 Nov 2004 12:53:27 -0500 Subject: [AccessD] Form Sub form Problem Message-ID: They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Fri Nov 19 12:22:33 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 10:22:33 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191824.iAJIOYL07083@databaseadvisors.com> The cross rookie programmers? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, November 19, 2004 9:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Fri Nov 19 12:32:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 19 Nov 2004 10:32:46 -0800 Subject: [AccessD] Form Sub form Problem In-Reply-To: Message-ID: <200411191834.iAJIYlL18698@databaseadvisors.com> They weren't before but they are now. Joe Hecht jmhla at earthlink.net 28g From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust ite: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Nov 19 12:42:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 Nov 2004 10:42:44 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something References: <000e01c4ce4e$8a192090$de1811d8@danwaters> Message-ID: <419E3EA4.2070408@shaw.ca> I use French English Data Entry for Access occasionally in programs for Canadian Federal Gov't requirements. For starters you want to setup your keyboard for multilanguage input. Go to Control panel Regional Language Setting , Select Language Tab, Click Details Now select the language HeHeehee, this is where your problems start. There are 18 Regional versions of Spanish available. Okay so select one. Then choose where you want the language selection bar to appear floating at top of screen or in taskbar Check em all off till you are comfortable with one Also click Key Settings to allow switching language setting from keyboard, I use Alt-LeftShift. I have code lying around that allows you to interrogate the language bar from vba code and switch it. This allows bilingual form data entry. Now you can enter headers in design mode etc for seperate reports in whatever language via Unicode Different languages require you to perhaps change positions on reports, ie German words are 30% longer than English. I guess you will have to discuss with your client how to handle detail lines from tables Does she want a Spanish translation of Widgets to appear. El Widget? or La Widget. There are some automatic translation programs that may help here in $1000 range. Then you will have to change your queries and tables to handle this. Just hope they don't want time and currency formats changed. Bonne Chance. Buena Suerte Dan Waters wrote: >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Fri Nov 19 12:50:28 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 13:50:28 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119185105.HMAY2410.imf24aec.mail.bellsouth.net@SUSANONE> I know, I know, I know... ;) Still, something is nagging at me. In the middle of the night, it will rush into my head, wake me up and I will realize it had nothing at all to do with the subject at hand. Susan H. Unions are not updatable by definition, Susan, no matter what tricks you use. In a Union, there is no distinction between the tables the fields come from and the names don't even have to match,just the datatypes, so there's no way to update any of the data. From cfoust at infostatsystems.com Fri Nov 19 12:53:27 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 19 Nov 2004 10:53:27 -0800 Subject: [AccessD] Form Sub form Problem Message-ID: No, it's the veteran programmers who get cross. The rookies don't know enough to be cranky! Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Friday, November 19, 2004 10:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem The cross rookie programmers? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, November 19, 2004 9:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem They do things a little different in California, I hear. Maybe it is for the cross-whatevers to accommodate their two identities. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Yes, and I was formerly a Vice President/Corporate Secretary, but that wasn't considered more than a single title. Charlotte Foust -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Friday, November 19, 2004 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form Sub form Problem Many years ago I bought a library of functions for Turbo Pascal (I believe) - the person who wrote it had the title(s) President and Chief Bottle Washer. John W. Colby The DIS Database Guy -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, November 19, 2004 11:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Sub form Problem Are they paying them many salaries as well? Unless they're storing a job history, many titles doesn't make sense to me. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Thursday, November 18, 2004 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form Sub form Problem The Situation On an inherited database the client has a single Employees form that lists the with a text box for job title. They want to have one employee with many job titles. I am trying to add a sub form continuous view with a combo box. SELECT stblEmpJobTitle.EmpID, stblEmpJobTitle.JobTitleID, [Job Title].JobTitle FROM [Job Title] LEFT JOIN stblEmpJobTitle ON [Job Title].JobTitleID = stblEmpJobTitle.JobTitleID WHERE (((stblEmpJobTitle.EmpID)=[Forms]![Employees]![EmpID])); I need to not only show current job title but also assign new ones. When I go to the next combo box it already has the existing job. Looking for some help here please. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Fri Nov 19 13:39:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 19 Nov 2004 14:39:30 -0500 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <20041119194006.FXYR2400.imf19aec.mail.bellsouth.net@SUSANONE> No, but possible the trick of adding ALL to UNION to speed it up -- maybe... Who knows... I have a bad headache. :) Mixed up Access tips often dance around in my head when I have a headache. :) Susan H. Are you thinking of the tip on using a UNION to add an "ALL" selection to a dropdown list? From Jim.Hale at FleetPride.com Fri Nov 19 13:51:12 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 19 Nov 2004 13:51:12 -0600 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233723A@corp-es01.fleetpride.com> re: "lost messages" they are probably up on some screen of an overworked security analyst in Homeland security who is trying to decide if they are OK to let through. Jim Hale -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Friday, November 19, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From dwaters at usinternet.com Fri Nov 19 14:49:19 2004 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 19 Nov 2004 14:49:19 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <29937037.1100885921698.JavaMail.root@sniper17.securence.com> Message-ID: <001001c4ce79$3de4dc70$de1811d8@danwaters> Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Mark.Mitsules at ngc.com Fri Nov 19 15:01:28 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Fri, 19 Nov 2004 16:01:28 -0500 Subject: [AccessD] A2003:Test Voracity of URLS - Repost Message-ID: ;) Sad that it could be true...maybe not today, but someday... Mark -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Friday, November 19, 2004 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost re: "lost messages" they are probably up on some screen of an overworked security analyst in Homeland security who is trying to decide if they are OK to let through. Jim Hale -----Original Message----- From: Mitsules, Mark [mailto:Mark.Mitsules at ngc.com] Sent: Friday, November 19, 2004 7:48 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Darren, I'm glad you actually got the post. I still haven't seen either of my posts from this thread:( I truly believe I am missing a growing number of posts from my dba lists, but I haven't got a clue as to why or if there is a pattern emerging. Mark -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, November 18, 2004 5:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003:Test Voracity of URLS - Repost Hi Mark Perfect - Excellent bit of work Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark Sent: Friday, 19 November 2004 2:46 AM To: [AccessD] Subject: [AccessD] A2003:Test Voracity of URLS - Repost Darren, When doing maintenance on my departmental website, I use Xenu's Link Sleuth. I am fairly certain that it is still free to download. http://home.snafu.de/tilman/xenulink.html Not only can it verify links within a website, but for you purposes I believe it will verify a simple text listing of URLs. It is extremely fast. Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From pcs at azizaz.com Fri Nov 19 17:44:41 2004 From: pcs at azizaz.com (Borge Hansen) Date: Sat, 20 Nov 2004 09:44:41 +1000 Subject: [AccessD] Triple State Check Box References: Message-ID: <005001c4ce91$c05aea60$fa10a8c0@Albatross> Hi, I've been playing around with the triple state property of a checkbox on a bound multirecord subform bound to a Yes/No field in the backend table. To make it work I finally had to bind the check box control to a field with a different datatype. It's now bound to an integer field with default value of 'null' and validation rule set to: 'Between -1 And 0 Or Is Null' . Now it works. But : Is that the (only) way to do it, or have I overlooked something? Regards Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From william.thompson1 at att.net Fri Nov 19 19:51:52 2004 From: william.thompson1 at att.net (william.thompson1 at att.net) Date: Sat, 20 Nov 2004 01:51:52 +0000 Subject: [AccessD] Finite instances of form in Edit, Add modes - Close cmdButton? Message-ID: <112020040151.12465.419EA337000D5E16000030B12160280741CE02019C9F0301089BD2030E0704040799@att.net> Yes, that does make sense. I think what threw me at first was seeing 'SetFocus' as in: set ....etc Form_FrmSome.Setfocus I realize now that's how control is passed to the instance. The visible property happens later, and in the new instance itself. me.visible = true I understand now that a Public Function is built in the new instance form, which allows it to retain a reference to itself, and that a reference could not be passed via openargs. Another part of this that is always tricky for me is that a form's Public Function can be called when it is not loaded. It's not hidden in this pristine state, yet it remains unloaded and can cycle through records. I think ideally I'd like to have, as you describe, the close button set the reference = nothing Thanks, Bill -------------- Original message from "Colby, John" : -------------- > A form opened in this manner has to have a pointer to the form stored > somewhere in order to remain open. As soon as the last pointer to that form > is set to nothing, the form will close. > > One way to keep the form open is to pass the pointer to the form in to the > form, where it stores the pointer to itself in its header. The close button > does nothing more than set that pointer = nothing. That allows the form to > close itself. > > It is not possible to pass pointers as openagrs, the data type of an openarg > is a string. Thus you have to build a public function in the form being > opened that can be called and a pointer passed in, or the form being opened > has to reach back to the opening form and ask for the pointer to itself. > > The other way is to have the calling form to store the pointer to the form, > but now the calling form has to close the new form by setting the pointer to > nothing. > > Does all this make sense? > > John W. Colby > The DIS Database Guy > > > -----Original Message----- > From: William Thompson [mailto:william.thompson1 at att.net] > Sent: Friday, November 19, 2004 10:24 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Finite instances of form in Edit, Add modes - > Close cmdButton? > > > Hi, > I have a SQL Server front-end that has to be a minimal code solution, and I > wanted to open a form, form_someform, with openargs "Edit" or "Add". > > I don't want the user to have to 'x' out to close the form instance. There > would only be the two additional instances. > > My question is how to handle the close button in the new instance. Am I > correct to presume that I have to pass the new instance a reference to > itself in order to hand control back to the caller? > > The call to open the instance would be something like > > Dim frmSomeTable As Form_SomeTable > > Set frmSomeTable = New Form_SomeTable > > Form_SomeTable.Setfocus > > Set Form_SomeTable = Nothing > > ''' I think the new instance needs a Method like > > public sub InstanceIt(TheCaller as form) > > Set m_frmThis = Me > > Set m_frmCaller = TheCaller > > Me.Visible = True > > end sub > > ''' So eventually I'd like to somehow have a command button that closes the > form sort of like.. > > Private Sub cmdCloseThis() > > ''' Set m_frmThis = Nothing > > ''' Or I guess it has to be > ''' HandItBackToTheCaller > me.Hide > > m_frmCaller.SetFocus > > End Sub > > ''' Caller's Code continued ... > Set Form_SomeTable = Nothing > > This won't work though will it ? I'm a little fuzzy on it, any help > appreciated. > > Bill > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 lmrazek at lcm-res.com Sat Nov 20 07:44:46 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Sat, 20 Nov 2004 07:44:46 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: <112020040151.12465.419EA337000D5E16000030B12160280741CE02019C9F0301089BD2030E0704040799@att.net> Message-ID: <200411200844478.SM01080@hplaptop> Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From jwcolby at colbyconsulting.com Sat Nov 20 08:21:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 20 Nov 2004 09:21:14 -0500 Subject: [AccessD] Norton av Message-ID: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From dwaters at usinternet.com Sat Nov 20 11:43:34 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 20 Nov 2004 11:43:34 -0600 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: <000001c4cf28$758a0ec0$de1811d8@danwaters> Happy Thanksgiving to everyone! I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. From Gustav at cactus.dk Sat Nov 20 12:42:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Nov 2004 19:42:22 +0100 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: Hi Dan Here is how Kath Pelletti did a year ago: Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For I = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(I).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(I).Properties(propName).Value <> propVal Then MyDB.TableDefs(I).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(I).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(I).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(I).Name & "." MyDB.Close Exit Function End If End If End If Next I MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function /gustav >>> dwaters at usinternet.com 20-11-2004 18:43:34 >>> I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. From dwaters at usinternet.com Sat Nov 20 13:10:21 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 20 Nov 2004 13:10:21 -0600 Subject: [AccessD] Change SubDatasheetName to [None] in code? In-Reply-To: <25131053.1100976769639.JavaMail.root@sniper17.securence.com> Message-ID: <000001c4cf34$950fdbb0$de1811d8@danwaters> Thanks Gustav! (and Kath)! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 20, 2004 12:42 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Change SubDatasheetName to [None] in code? Hi Dan Here is how Kath Pelletti did a year ago: Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For I = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(I).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(I).Properties(propName).Value <> propVal Then MyDB.TableDefs(I).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(I).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(I).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(I).Name & "." MyDB.Close Exit Function End If End If End If Next I MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function /gustav >>> dwaters at usinternet.com 20-11-2004 18:43:34 >>> I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Wed Nov 17 12:05:52 2004 From: lists at theopg.com (MarkH) Date: Wed, 17 Nov 2004 18:05:52 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdb on a different workgroup In-Reply-To: <5.1.0.14.2.20041116135414.01419f28@pop3.highstream.net> Message-ID: <000001c4ccd0$147c70a0$0e0b6bd5@netboxxp> Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 From john at winhaven.net Sat Nov 20 19:00:21 2004 From: john at winhaven.net (John Bartow) Date: Sat, 20 Nov 2004 19:00:21 -0600 Subject: [AccessD] Norton av In-Reply-To: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Message-ID: Depends on the version but in the last couple of them you go into NAV then click options then email then "try to repair, if unsuccessful quietly delete". HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 8:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Nov 20 19:55:35 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 20 Nov 2004 17:55:35 -0800 Subject: [AccessD] Norton av In-Reply-To: <000e01c4cf0c$343b8690$e8dafea9@ColbyM6805> Message-ID: Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Nov 20 20:21:05 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 20 Nov 2004 21:21:05 -0500 Subject: [AccessD] Norton av In-Reply-To: Message-ID: <001a01c4cf70$c16476d0$e8dafea9@ColbyM6805> Id have to do the entire domain. The address is no doubt spoofed and coming from a different address every time. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 20 22:28:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 20:28:14 -0800 Subject: [AccessD] x posted Get name for message box Message-ID: <000001c4cf82$87391620$6501a8c0@delllaptop> I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Developer at UltraDNT.com Sat Nov 20 22:40:42 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Sat, 20 Nov 2004 23:40:42 -0500 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000001c4cf82$87391620$6501a8c0@delllaptop> Message-ID: <000c01c4cf84$429cedf0$0200a8c0@COA3> "You have chosen to delete " & Me.FirstName & " " & Me.LastName & "!" -- substituting your control names for first & last name Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 20, 2004 11:28 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] x posted Get name for message box I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 20 22:58:11 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 20:58:11 -0800 Subject: [AccessD] XPOSTED Where to put a query. Message-ID: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> I am working on an inherited database. The original database there was a 1->1 relationship between employees and job titles. At the request of the client, I have made a 1->many relationship between employees and job titles. This sql was the after update to the form: INSERT INTO TrainDate ( EmpID, DocID ) SELECT Employee.EmpID, JobDoc.DocID FROM Employee INNER JOIN JobDoc ON Employee.JobTitleID = JobDoc.JobTitleID WHERE (((Employee.EmpID)=[Forms]![Employees]![EmpID]) AND ((Employee.JobTitleID)=[JobDoc].[JobTitleID])); I need to know please: 1. Where do I put the sql statement to check each record on the subform. 2. How do I ensure it does not add duplicate records if a potentional situation a. existing employee is in the system b. if they are assigned a second or more job title Hope this is clear. TIA JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Sat Nov 20 23:05:39 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 21:05:39 -0800 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000001c4cf82$87391620$6501a8c0@delllaptop> Message-ID: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> Thanks Steve, Gotta love these lists New problem: How do I get related records in other tables? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 20, 2004 8:28 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] x posted Get name for message box I have the following code for the on click event of a form. I want to replace " this employee " with the current employee name on the form. How do I do that? Private Sub cmdDelEmp_Click() ' Comments Confirm Employeee Deletion: ' Parameters: - ' Modified : Dim lngRetval As Long lngRetval = MsgBox( _ "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Confirm Emplyee Deletion") Select Case lngRetval Case vbYes DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Case vbNo Case vbCancel End Select ' ' ------------------------------------- Exit_cmdDelEmp_Click: Exit Sub Err_cmdDelEmp_Click: MsgBox Err.Description Resume Exit_cmdDelEmp_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 20 23:20:47 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 20 Nov 2004 21:20:47 -0800 Subject: [AccessD] How do I find out about .dlls Message-ID: <000b01c4cf89$e0d57050$6501a8c0@delllaptop> Specificly owc10.dll JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Gustav at cactus.dk Sun Nov 21 02:42:41 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 21 Nov 2004 09:42:41 +0100 Subject: [AccessD] How do I find out about .dlls Message-ID: Hi Joe Google - too many hits to list. /gustav >>> jmhla at earthlink.net 21-11-2004 06:20:47 >>> Specificly owc10.dll From Gustav at cactus.dk Sun Nov 21 04:21:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 21 Nov 2004 11:21:22 +0100 Subject: [AccessD] Search for linked documents.... Message-ID: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander From artful at rogers.com Sun Nov 21 10:45:00 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 21 Nov 2004 11:45:00 -0500 Subject: [AccessD] x posted Get name for message box In-Reply-To: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> References: <000a01c4cf87$c24b8400$6501a8c0@delllaptop> Message-ID: <41A0C60C.4050302@rogers.com> I'd write a wrapper function rather than calling MsgBox directly. Something along the lines of .... Function JH_MsgBox( strSubstitute, strTitle ) As Integer Dim intResult as Integer intResult = MsgBox( "You have chosen to delete employee " & strSubstitute, vbYesNo, strTitle ) JH_MsgBox = intResult How you get the list of related rows in other tables depends a LOT on how thorough you are in documenting your tables' relationships. Assuming that you are thorough, you can get the list of related tables with a query against MSysRelationships. Make this table visible (show system objects) and browse it, and the contents are self-explanatory. The general principle is that the One table precedes the Many table in the naming scheme. The PKs and FKs are named so you could easily construct a query to list the related tables. Maybe this is going to result in a graceful routine, but I guess that in my advanced years I've grown lazy. I just declare Cascade-Delete OFF and let Access handle it. If and when the client complains, I just say, "Such a potentially disastrous action should NOT be easy." If you want to delete a salesperson and then all her sales orders and then all the sales details, then I'm going to make it difficult for you, so you will appreciate the consequences of your actions. Arthur Joe Hecht wrote: >Thanks Steve, > >Gotta love these lists > >New problem: How do I get related records in other tables? > >JOE HECHT >LOS ANGELES CA > jmhla at earthlink.net > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Saturday, November 20, 2004 8:28 PM >To: 'Access Developers discussion and problem solving'; 'ACCESS-L' >Subject: [AccessD] x posted Get name for message box > >I have the following code for the on click event of a form. I want to >replace " this employee " with the current employee name on the form. > > > >How do I do that? > > > >Private Sub cmdDelEmp_Click() > > ' Comments Confirm Employeee Deletion: > > ' Parameters: - > > ' Modified : > > Dim lngRetval As Long > > > > lngRetval = MsgBox( _ > > "You have chosen to delete this employee!" & vbCrLf & "" & vbCrLf & >"Do you wish to continue?", _ > > vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ > > "Confirm Emplyee Deletion") > > > > Select Case lngRetval > > Case vbYes > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 > > > > Case vbNo > > Case vbCancel > > End Select > > ' > > ' ------------------------------------- > > > > > > > >Exit_cmdDelEmp_Click: > > Exit Sub > > > >Err_cmdDelEmp_Click: > > MsgBox Err.Description > > Resume Exit_cmdDelEmp_Click > > > >End Sub > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From dwaters at usinternet.com Sun Nov 21 10:46:13 2004 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 21 Nov 2004 10:46:13 -0600 Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup In-Reply-To: <4943882.1100985514124.JavaMail.root@sniper14.securence.com> Message-ID: <000201c4cfe9$9d282540$de1811d8@danwaters> Mark, If 'JoeJ' on secured Database A has a PID of 1234, then JoeJ will be able to (programmatically) open and run secured Database B from Database A if there is a JoeJ with PID of 1234 set up for Database B. At one point when I was setting up a few different databases, I made sure that the same people had the same PID's. I never did set up the method to run one from the other though. Best of Luck, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Wednesday, November 17, 2004 12:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Nov 21 10:58:51 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 21 Nov 2004 11:58:51 -0500 Subject: [AccessD] XPOSTED Where to put a query. In-Reply-To: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> References: <000501c4cf86$b6bb9310$6501a8c0@delllaptop> Message-ID: <41A0C94B.1060201@rogers.com> Assume tblEmployees has 1 row, tblTitles has 3 rows, and tblEmployeeTitles has one row: EmpID 123 TitleID 1, 2, 3 EmpTitleID 1, EmpID 123, TitleID 1 You want to populate the combo for the associative table by "minus-ing" the titles already assigned. There are several ways to do this, and I don't profess to know which would best suit you or the size of your database tables.... SELECT TitleID, TitleName FROM tblTitles WHERE TitleID NOT IN( SELECT TitleID FROM tblEmpoyeeTitles WHERE EmpID = 123 ) SELECT TitleID, TitleName FROM tblTitles OUTER JOIN tblEmployeeTitles ON tblTitles.TitleID = tblEmployeeTitles.TitleID WHERE tblEmployeeTitles.TitleID IS NULL You might want to add an ORDER BY TitleName to each of these queries. Arthur Joe Hecht wrote: >I am working on an inherited database. > > > >The original database there was a 1->1 relationship between employees and >job titles. > > > >At the request of the client, I have made a 1->many relationship between >employees and job titles. > > > >This sql was the after update to the form: > > > >INSERT INTO TrainDate ( EmpID, DocID ) > >SELECT Employee.EmpID, JobDoc.DocID > >FROM Employee INNER JOIN JobDoc ON Employee.JobTitleID = JobDoc.JobTitleID > >WHERE (((Employee.EmpID)=[Forms]![Employees]![EmpID]) AND >((Employee.JobTitleID)=[JobDoc].[JobTitleID])); > > > >I need to know please: > > 1. Where do I put the sql statement to check each record on the >subform. > > 2. How do I ensure it does not add duplicate records if a >potentional situation > > a. existing employee is in the system > > b. if they are assigned a second or more job title > > > >Hope this is clear. > > > >TIA > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From jwcolby at colbyconsulting.com Sun Nov 21 13:58:57 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 21 Nov 2004 14:58:57 -0500 Subject: [AccessD] Norton av In-Reply-To: Message-ID: <002901c4d004$894084d0$e8dafea9@ColbyM6805> The problem is that NAV gets it first, and it just refuses to NOT announce to the world it has found a virus. Its damned annoying since I'm getting about a dozen a day. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sun Nov 21 14:09:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 21 Nov 2004 15:09:27 -0500 Subject: [AccessD] Norton av In-Reply-To: <002901c4d004$894084d0$e8dafea9@ColbyM6805> Message-ID: <003201c4d006$00e44e80$e8dafea9@ColbyM6805> This is too weird. There must be two routes in to that area because when I just pop up the NAV and click on email, silently quarantine is not an option, but after poking around then going back there are about 3 more options not available the first time, including silently quarantine. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, November 21, 2004 2:59 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Norton av The problem is that NAV gets it first, and it just refuses to NOT announce to the world it has found a virus. Its damned annoying since I'm getting about a dozen a day. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, November 20, 2004 8:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Norton av Hi John: Just add the particular .de mail to your junk email list and aim it straight to the Deleted Items folder. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Sun Nov 21 14:23:35 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 21 Nov 2004 20:23:35 -0000 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <000b01c4cf89$e0d57050$6501a8c0@delllaptop> Message-ID: <000001c4d007$fa96ecc0$b274d0d5@minster33c3r25> Joe Try MS's DLL Help Database at http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion %2fdefault.asp%3fvartarget%3dmsdn -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 21 November 2004 05:21 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How do I find out about .dlls > > > Specificly owc10.dll > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > 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 Nov 21 14:23:35 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 21 Nov 2004 20:23:35 -0000 Subject: [AccessD] Updatable UNION? In-Reply-To: Message-ID: <000201c4d007$fb07fe10$b274d0d5@minster33c3r25> Well I'll give the Refresh a try, but Gustav is quite correct that I said at the outset that requerying the data is out of the question. And the update has to show on-screen immediately as it is the user's visual guide to what he has and hasn't done. What I've almost got the screen converted to is using a UNION query just to populate a temp table of pk's in the form's OnOpen, then basing the form on a query which links the temp table to all of the required data. This query, although quite complex, fits the bill of being updatable and immediately updating the underlying tables. So thanks everyone for the feedback but the job's pretty well done now. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 19 November 2004 16:53 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Updatable UNION? > > > Hi Andy > > OK, if that works, Andy would be fine. > I haven't tried myself, just noted that a requery was out of the > qestion: > > >By the way it's not practical to upodate the underlying tables and > requery > >to display the depatch info because there's a lot of data on screen > and > >requerying takes too long. > > /gustav > > >>> artful at rogers.com 19-11-2004 17:28:07 >>> > > I wouldn't be quite that hasty, Gustav. You are of course correct that > > UNIONs are read-only, but you can certainly grab the PK, pop up a form > > that permits the update, and Refresh rather than Requery. > I've done this > particular thing several times and it works a treat. > > Arthur > > Gustav Brock wrote: > > >Hi Andy > > > >No, unions are read-only. If you can't go the update-behind-requery > >route, I guess you are left with the temp table. > > > >/gustav > > > > > > > >>>>andy at minstersystems.co.uk 18-11-2004 10:09:56 >>> > >>>> > >>>> > > > >Morning all > >I've a continuous screen which needs to list two types of > order in date > >sequence. These are held on separate tables. No problem, a UNION > query > >does > >the job fine. However the user has to tick an order to say it's > >despatched, and then the screen needs to show that > information, but the > >recordset is not > >updatable. Presumably this applies to all UNION queries does it? Does > >anyone > >have a way round this or do I have to go to extracting to a temp > table > >and > >all that jazz? > > > >By the way it's not practical to upodate the underlying tables and > >requery to display the depatch info because there's a lot of data on > >screen and > >requerying takes too long. > > > >-- > >Andy Lacey > >http://www.minstersystems.co.uk > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jmhla at earthlink.net Sun Nov 21 18:10:49 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 21 Nov 2004 16:10:49 -0800 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <000001c4d007$fa96ecc0$b274d0d5@minster33c3r25> Message-ID: <200411220012.iAM0CnL10818@databaseadvisors.com> Thanks Andy, Tells me everything but what I want to know. What does OWC10.dll do? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Sunday, November 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls Joe Try MS's DLL Help Database at http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion %2fdefault.asp%3fvartarget%3dmsdn -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 21 November 2004 05:21 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How do I find out about .dlls > > > Specificly owc10.dll > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 pcs at azizaz.com Sun Nov 21 19:13:04 2004 From: pcs at azizaz.com (Borge Hansen) Date: Mon, 22 Nov 2004 11:13:04 +1000 Subject: [AccessD] How do I find out about .dlls References: <200411220012.iAM0CnL10818@databaseadvisors.com> Message-ID: <007501c4d030$6b6d0150$fa10a8c0@Albatross> Joe, Try google: OCW10.dll definition or "Microsoft Office Web Components" library Borge ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Monday, November 22, 2004 10:10 AM Subject: RE: [AccessD] How do I find out about .dlls > Thanks Andy, > > Tells me everything but what I want to know. What does OWC10.dll do? > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Sunday, November 21, 2004 12:24 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] How do I find out about .dlls > > Joe > Try MS's DLL Help Database at > > http://support.microsoft.com/default.aspx?scid=%2fservicedesks%2ffileversion > %2fdefault.asp%3fvartarget%3dmsdn > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > > Sent: 21 November 2004 05:21 > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] How do I find out about .dlls > > > > > > Specificly owc10.dll > > > > > > > > JOE HECHT > > > > LOS ANGELES CA > > > > jmhla at earthlink.net > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 6/10/2004 From hadyn at dataconcepts.co.nz Sun Nov 21 19:15:31 2004 From: hadyn at dataconcepts.co.nz (Hadyn Morgan) Date: Mon, 22 Nov 2004 14:15:31 +1300 Subject: [AccessD] How do I find out about .dlls In-Reply-To: <200411220012.iAM0CnL10818@databaseadvisors.com> Message-ID: It's part of Office Web Components for 2000. Hadyn -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Monday, 22 November 2004 13:11 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls Thanks Andy, Tells me everything but what I want to know. What does OWC10.dll do? Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Sunday, November 21, 2004 12:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I find out about .dlls -SNIP- From R.Griffiths at bury.gov.uk Mon Nov 22 05:28:04 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 22 Nov 2004 11:28:04 -0000 Subject: [AccessD] Design Problem Message-ID: Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard From accessd667 at yahoo.com Mon Nov 22 05:31:02 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 22 Nov 2004 03:31:02 -0800 (PST) Subject: [AccessD] Search for linked documents.... In-Reply-To: Message-ID: <20041122113102.67318.qmail@web61108.mail.yahoo.com> Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! From Chris.Foote at uk.thalesgroup.com Mon Nov 22 05:39:31 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 22 Nov 2004 11:39:31 -0000 Subject: [AccessD] Design Problem Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C4A7@ntscxch1.int.rdel.co.uk> Morning Richard! My approach to this would be to put _all_ Client details into one table and Job details into another separate table. The Job table would contain fields for fldClient1, fldClient2, fldClient3, etc. HTH - Chris Foote (UK) > -----Original Message----- > From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] > Sent: Monday, November 22, 2004 11:28 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Design Problem > > > Hi Group > > > > I am having a brain blockage - can anyone help. I will try to be as > brief as possible. > > I can't figure out how to design this one. Seems like > different options > - not sure which way to go. > > Here goes (may not be as complicated as it appears) - sorry > its so long. > --------(Snip)-------- From KP at sdsonline.net Mon Nov 22 05:40:31 2004 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 22 Nov 2004 22:40:31 +1100 Subject: [AccessD] Design Problem References: Message-ID: <001601c4d088$167e6b90$6401a8c0@user> Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Nov 22 05:49:48 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 22 Nov 2004 11:49:48 -0000 Subject: [AccessD] Design Problem Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C4A8@ntscxch1.int.rdel.co.uk> I agree with Kath (who described my preferred solution much better than I did :-O) Chris Foote > -----Original Message----- > From: Kath Pelletti [mailto:KP at sdsonline.net] > Sent: Monday, November 22, 2004 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Design Problem > > > Richard - I think if it was me I would only have one client > table, from what you have said, but with 3 separate fields there, eg. > > 'Job' table: > Job ID (autonumber) > RequestorID (related to Client ID in Client table) > PrincipalClientID (related to Client ID in Client table) > RecipientID (related to Client ID in Client table) > > 'Client' table > Client ID (autonumber) > Name details > Address details > > > The fields RequestorID, PrincipalClientID and RecipientID > would all relate to one Client table. > > That way all 'client' data would be stored in the one table > and never duplicated, and you would have the flexibility of > having any combination of the 3 fields in the Job table. The > only mandatory field (it appears) would be the RequestorID. > > HTH > > Kath From bheid at appdevgrp.com Mon Nov 22 06:49:13 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 Nov 2004 07:49:13 -0500 Subject: [AccessD] Norton av In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A2BB49@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA20@ADGSERVER> I saw that you found what you were looking for. I believe that it is the Sober virus you are getting. It was targeted at the Germans (.de). I had 27 of them in quarantine this morning when I got in. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 20, 2004 9:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Norton av Does anyone know how to get nav to just quietly quarantine virus messages? For some reason my new address got on a virus writer's list and I am getting 10 a day - all from .de email address. I'd like to have nav just stop telling me about the viruses and just quarantine them. John W. Colby From Jdemarco at hudsonhealthplan.org Mon Nov 22 07:04:29 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 08:04:29 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B41@TTNEXCHCL2.hshhp.com> No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 R.Griffiths at bury.gov.uk Mon Nov 22 07:16:04 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 22 Nov 2004 13:16:04 -0000 Subject: [AccessD] Design Problem Message-ID: Thanks Kath, Chris for your reply - this was my original thinking but then I had doubts. As the Recipients really may only have a name (and maybe address) I wondered whether they should have their own table. I will simply have to add logic to my FE (and have fields such as IsOrganisation, IsRecipient flags/fields on my Client table) so that when adding new Requestor Clients it displays invoice, vat etc details - but not for Recipient Clients. Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 22 November 2004 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Problem Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 pcs at azizaz.com Mon Nov 22 07:22:25 2004 From: pcs at azizaz.com (Borge Hansen) Date: Mon, 22 Nov 2004 23:22:25 +1000 Subject: Fw: [AccessD] Triple State Check Box Message-ID: <000c01c4d096$4efde370$fa10a8c0@Albatross> Any one who wants to offer a comment? Borge ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Saturday, November 20, 2004 9:44 AM Subject: Re: [AccessD] Triple State Check Box > Hi, > I've been playing around with the triple state property of a checkbox on a > bound multirecord subform bound to a Yes/No field in the backend table. > > To make it work I finally had to bind the check box control to a field with > a different datatype. > It's now bound to an integer field > with default value of 'null' > and validation rule set to: 'Between -1 And 0 Or Is Null' . > > Now it works. > > But : Is that the (only) way to do it, or have I overlooked something? > > Regards > Borge --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 From Gustav at cactus.dk Mon Nov 22 07:44:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 22 Nov 2004 14:44:22 +0100 Subject: Fw: [AccessD] Triple State Check Box Message-ID: Hi B?rge Seems OK to me. You could have chosen Byte but then you would need to record Null, 0, and 1. 1 is valid for not False in VB(A) and you can check for that with <> False or Not False Validation rule could be: 0 Or -1 Or Is Null or, for Byte: 0 Or 1 Or Is Null /gustav >>> pcs at azizaz.com 22-11-2004 14:22:25 >>> Any one who wants to offer a comment? Borge ----- Original Message ----- From: "Borge Hansen" To: "Access Developers discussion and problem solving" Sent: Saturday, November 20, 2004 9:44 AM Subject: Re: [AccessD] Triple State Check Box > Hi, > I've been playing around with the triple state property of a checkbox on a > bound multirecord subform bound to a Yes/No field in the backend table. > > To make it work I finally had to bind the check box control to a field with > a different datatype. > It's now bound to an integer field > with default value of 'null' > and validation rule set to: 'Between -1 And 0 Or Is Null' . > > Now it works. > > But : Is that the (only) way to do it, or have I overlooked something? > > Regards > Borge From dwaters at usinternet.com Mon Nov 22 09:14:33 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 09:14:33 -0600 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <1619889.1101128794822.JavaMail.root@sniper18.securence.com> Message-ID: <000801c4d0a5$f9224350$de1811d8@danwaters> I did some internet research and found that there apparently isn't anything that does 'perfect' translations - that is left to actual people! It did seem that there were some not inexpensive software solutions that would have been able to do a pretty good job. Translation on a PC is called Machine Translation. Machine translation can take a document and take a 'first cut' at doing a translation. Then someone who knows both languages can finish it off in less time. I'm going to recommend this approach to my client. This first cut can be done from Word. Open a Word document and highlight some text. Select Tools | Language | Translate. A Translate pane will appear at the right. At the bottom see 'Translate via the Web'. Select the language translation you want. Push Go. A web site will open with the Machine translation of the text you highlighted. I tried to use the Look up in Dictionary feature, but that always came back with No Suggestions. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Monday, November 22, 2004 7:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 GregSmith at starband.net Mon Nov 22 09:33:23 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 22 Nov 2004 09:33:23 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime "issue"... In-Reply-To: <000c01c4d096$4efde370$fa10a8c0@Albatross> References: <000c01c4d096$4efde370$fa10a8c0@Albatross> Message-ID: <1360.65.118.249.206.1101137603.squirrel@cetus.email.starband.net> Hello everyone! Is there a way to shut off the security messages you get in Access 2003 in a runtime version of an application? I have them shut off on my computer and it works fine here, but when I have the customer install it on their computer(s) (they don't have Access installed at all), they get the messages on startup about unsafe expressions, etc. They can't shut them off on their computers because the application doesn't allow access to those areas (restricted menus). I was hoping to be able to do it internally (in vb), but that's probably exactly what MS is trying to prevent with the security. So far they've succeeded and I've failed...and turning warnings on/off doesn't do it either. Of course, if they have Access installed, I'll tell them to just shut off the macro security (set it to 'low')...which has it's inherent dangers, but in most cases is ok. Any help or suggestions would be greatly appreciated. TIA! Greg Smith gregsmith at starband.net From sgeller at cce.umn.edu Mon Nov 22 09:40:36 2004 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 22 Nov 2004 09:40:36 -0600 Subject: [AccessD] Schedule a Query to run once a month Message-ID: I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 jmhla at earthlink.net Mon Nov 22 09:45:48 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 22 Nov 2004 07:45:48 -0800 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: Message-ID: <200411221547.iAMFlqL25040@databaseadvisors.com> Based on other discussions in this group, you need to have some program or operating system scheduled event to call the mdb. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, November 22, 2004 7:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 GregSmith at starband.net Mon Nov 22 09:55:39 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 22 Nov 2004 09:55:39 -0600 (CST) Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: References: Message-ID: <1432.65.118.249.206.1101138939.squirrel@cetus.email.starband.net> Susan: I have a set of queries run every night (or morning...) at 0410 when nobody is in the database. I actually have the queries in a separate application linked to the data (back end). Then using the scheduler in windows, have it run the application where the queries are set up to run in the autoexec macro of the 'different' application. Then it makes no difference if the main app is open or not, this one runs when you schedule it to run. HTH. Greg Smith gregsmith at starband.net > I have an mdb file that has an update query. I want this update query > to run once a month at a specific time. For example, the 28th day of the > month at 11:00 am. Is there a way to set this up to run even if the mdb > file is not open? > > --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 JColby at dispec.com Mon Nov 22 09:57:10 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 10:57:10 -0500 Subject: [AccessD] Schedule a Query to run once a month Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A5@DISABILITYINS01> You have to use Window's scheduler to open the database and execute the query. I would place the query out in a separate MDB, link in all and only the tables required for the query, then write a little function to run the query then shut down the db again. John W. Colby The DIS Database Guy -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, November 22, 2004 10:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 liz at symphonyinfo.com Mon Nov 22 09:57:26 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Mon, 22 Nov 2004 09:57:26 -0600 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: Message-ID: Susan, Use Windows Scheduler to open the .mdb with the update query. Set up an autoexec macro to run a function that checks the date and time, then runs the query if the current date and time are when you want it to run. It's been ages since we've heard from you! Hope all is well. Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com 763-391-7400 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, November 22, 2004 9:41 AM To: Access Developers discussion and problem solving Subject: [AccessD] Schedule a Query to run once a month I have an mdb file that has an update query. I want this update query to run once a month at a specific time. For example, the 28th day of the month at 11:00 am. Is there a way to set this up to run even if the mdb file is not open? --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 cfoust at infostatsystems.com Mon Nov 22 10:43:51 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 08:43:51 -0800 Subject: [AccessD] Change SubDatasheetName to [None] in code? Message-ID: Um ... Is it too late to point out that there is code in on-line help to turn off the subdatasheet for a table. It's easy enough to expand that to the entire database. I've done it a couple of slightly different ways, but I only found the code in help after I had built virtually the same code on my own. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Saturday, November 20, 2004 9:44 AM To: 'Database Advisors' Subject: [AccessD] Change SubDatasheetName to [None] in code? Happy Thanksgiving to everyone! I want to write a utility sub to change the SubDatasheetName property in tables to [None]. I'm trying to use the code below, but get an error of 'The object is closed or does not exist' at the code line beginning Set prp =. The table is open and in Design view. Dim obj As AccessObject Dim prp As DAO.Property Dim stgName As String For Each obj In CurrentData.AllTables stgName = obj.Name DoCmd.OpenTable stgName, acViewDesign, acEdit Set prp = obj.CreateProperty("SubDatasheetName", dbText, "[None]") DoCmd.Close acTable, stgName, acSaveYes Next Can this be done? Thanks, Dan Waters ProMation Systems, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Nov 22 10:44:23 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 11:44:23 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B4C@TTNEXCHCL2.hshhp.com> Another issue we've run across with translation is dialect so you'd have to becareful with and programmed translation. Which is another reason we've got two of everything, so we can determine and control dialect issues. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Monday, November 22, 2004 10:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something I did some internet research and found that there apparently isn't anything that does 'perfect' translations - that is left to actual people! It did seem that there were some not inexpensive software solutions that would have been able to do a pretty good job. Translation on a PC is called Machine Translation. Machine translation can take a document and take a 'first cut' at doing a translation. Then someone who knows both languages can finish it off in less time. I'm going to recommend this approach to my client. This first cut can be done from Word. Open a Word document and highlight some text. Select Tools | Language | Translate. A Translate pane will appear at the right. At the bottom see 'Translate via the Web'. Select the language translation you want. Push Go. A web site will open with the Machine translation of the text you highlighted. I tried to use the Look up in Dictionary feature, but that always came back with No Suggestions. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Monday, November 22, 2004 7:04 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something No not on the fly. Every report is saved twice (once for English, another for Spanish). This was all set up before I got here but I think the difference in the text sizes (lengths) between the languages was a major reason. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Friday, November 19, 2004 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Jim, Are your reports partially translated on the fly? If not it seems that you would need to have your original text information recorded in two separate places - one for each language? If on the fly how is this done? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something We have two of everything here at this point. Pick the language, print the correct version report. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, November 19, 2004 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Selecting Languages - English or Spanish or Something Switch to VB.Net and XML? (well, it IS Friday) :-} Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, November 19, 2004 7:44 AM To: Database Advisors Subject: [AccessD] Selecting Languages - English or Spanish or Something I have a client who would like their system to be able to present reports in different languages, based on a selection made on-screen by the reader. How would I get started making this happen? Thanks, Dan Waters ProMation Systems -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 *********************************************************************************** "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 Nov 22 10:44:35 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 08:44:35 -0800 Subject: [AccessD] ActiveX Charting Control For Access? Message-ID: Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Nov 22 10:45:07 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 22 Nov 2004 11:45:07 -0500 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B4D@TTNEXCHCL2.hshhp.com> I think Helen Feddema has something on this on her site. It's got to do with signing the code. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Greg Smith Sent: Monday, November 22, 2004 10:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] A2003 Macro Security in Runtime "issue"... Hello everyone! Is there a way to shut off the security messages you get in Access 2003 in a runtime version of an application? I have them shut off on my computer and it works fine here, but when I have the customer install it on their computer(s) (they don't have Access installed at all), they get the messages on startup about unsafe expressions, etc. They can't shut them off on their computers because the application doesn't allow access to those areas (restricted menus). I was hoping to be able to do it internally (in vb), but that's probably exactly what MS is trying to prevent with the security. So far they've succeeded and I've failed...and turning warnings on/off doesn't do it either. Of course, if they have Access installed, I'll tell them to just shut off the macro security (set it to 'low')...which has it's inherent dangers, but in most cases is ok. Any help or suggestions would be greatly appreciated. TIA! Greg Smith gregsmith at starband.net -- _______________________________________________ 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 kost36 at otenet.gr Mon Nov 22 11:46:38 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 22 Nov 2004 19:46:38 +0200 Subject: [AccessD] Some help please... References: Message-ID: <002601c4d0bb$388be310$0100a8c0@KOST36> On a start form I use a list box witch on open responds like: SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & [Father_name] & ", " & [year_born] & ")" AS patient FROM MT_basic_char I am trying to filter the patients names from a text box like: Private Sub text_box_Change() Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE [Last_Name] like '" & Me![text_box].Text & "*'" End Sub And continue with a double click to open tha main form filtered on: Private Sub list2_DblClick(Cancel As Integer) Dim stDocName As String Dim stLinkCriteria As String stDocName = "MT_basic_char" stLinkCriteria = "[AM] = " & Me!list2.Value & "" DoCmd.OpenForm stDocName, , , stLinkCriteria End Sub My question is: on text_box change how it could be possible to apear also all data: AM, Last_name, Father_name and year_born in order to work the double click? thank's a lot / kostas konstantinidis From JColby at dispec.com Mon Nov 22 11:52:47 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 12:52:47 -0500 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy From lists at theopg.com Mon Nov 22 12:18:54 2004 From: lists at theopg.com (MarkH) Date: Mon, 22 Nov 2004 18:18:54 -0000 Subject: [AccessD] Accessing data in secured mdb from another secured mdbona different workgroup In-Reply-To: <000201c4cfe9$9d282540$de1811d8@danwaters> Message-ID: <000801c4d0bf$bab01790$920d6bd5@netboxxp> Thanks Dan... I have discussed it with the client and it looks like as an interim we will use ADO connections instead of linked tables :@) and then in the long term we will be merging the two workgroups :@))) Thanks again Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 21 November 2004 16:46 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Accessing data in secured mdb from another secured mdbona different workgroup Mark, If 'JoeJ' on secured Database A has a PID of 1234, then JoeJ will be able to (programmatically) open and run secured Database B from Database A if there is a JoeJ with PID of 1234 set up for Database B. At one point when I was setting up a few different databases, I made sure that the same people had the same PID's. I never did set up the method to run one from the other though. Best of Luck, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: Wednesday, November 17, 2004 12:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Accessing data in secured mdb from another secured mdb ona different workgroup Hello All Using AXP on WinXP I have two databases secured on different workgroups and accessed from different front ends. I need to be able to import data from one into the other but am having problems as they are secured on different mdw's. I could merge the two mdw's but that would be a bit of a pain. Anyone know a simple solution? Thanks in advance Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.799 / Virus Database: 543 - Release Date: 19/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From Gustav at cactus.dk Mon Nov 22 12:21:28 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 22 Nov 2004 19:21:28 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- From JColby at dispec.com Mon Nov 22 12:23:39 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 13:23:39 -0500 Subject: [AccessD] #Num! Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A8@DISABILITYINS01> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? John W. Colby The DIS Database Guy From Developer at UltraDNT.com Mon Nov 22 12:32:39 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 22 Nov 2004 13:32:39 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Message-ID: <000701c4d0c1$a579e070$0200a8c0@COA3> How about: DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel9, "sheet1", "c:\temp\receipts.xls", True, "a1:h100" Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Colby, John Sent: Monday, November 22, 2004 12:53 PM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Linking to an excel spreadsheet Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JColby at dispec.com Mon Nov 22 12:38:52 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 22 Nov 2004 13:38:52 -0500 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A9@DISABILITYINS01> Gustav, You can link directly to a sheet in a .xls file, whereupon that sheet looks like a table in Access. The tdf is what is used to manipulate the linked table, at least in terms of discovering the name of the sheet, the name of the file it links to etc. I receive spreadsheets from the client. I link them in to the database, then write queries to append all the data from the spreadsheet into a raw data table. However, the spreadsheet is created by hand so the sheet name internal to the spreadsheet is not necessarily consistent from file to file. I am attempting to get the name of the sheet but have had instances where that failed. I have also had instances where I deleted the sheet and simply need to "relink" the spreadsheet from scratch. It is this process to which I am referring. Given a spreadsheet with a single sheet inside, with the data in a format such that the first line has field names, how do I "link" the spreadsheet to Access programmatically? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Monday, November 22, 2004 1:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking to an excel spreadsheet Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Nov 22 13:06:29 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Nov 2004 11:06:29 -0800 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Are you trying to do it with DAO or ADO, John? I have some ADO code I wrote way back when to drop and recreate a textlink and it handled XL as an option. I've attached it for whatever use it might be. Don't be critical, this was early in my use of ADO. Charlotte Foust Public Function LinkExternalFileADO(ByVal strTextFileName As String, _ ByVal strLinkTable As String, _ ByVal strLinkSpecRange As String, _ Optional blnXL As Boolean) As Boolean 'Created by Charlotte Foust 'drops and relinks the temp table 'and returns a boolean value for 'the success of the operation 'last modified 7/5/2001 'Sample call: LinkTextFileADO("MyTable.tab","MyTable","MyTable Spec") ' LinkTextFileADO("MySheet.xls","MySheet","MyRange",True) On Error GoTo Proc_err Dim cat As ADOX.Catalog Dim cnn As ADODB.Connection Dim errsCnn As ADODB.Errors Dim errCurr As ADODB.Error 'initialize the return value LinkExternalFileADO = True 'initialize the object variables Set cnn = CurrentProject.Connection Set cat = New ADOX.Catalog cat.ActiveConnection = cnn Set errsCnn = cnn.Errors errsCnn.Clear 'if the file exists, try to link it If strLinkTable <> "" Then 'If no path was included, use the current path If InStr(strTextFileName, "\") = 0 Then strTextFileName = CurrentProject.Path & "\" & strTextFileName End If 'InStr(strTextFileName, "\") = 0 'if the file exists then ... If Dir(strTextFileName) <> "" Then On Error Resume Next 'delete the existing table link cat.Tables.Delete strLinkTable On Error GoTo Proc_err 'link either a text file or an Excel spreadsheet If Not blnXL Then 'create a new link to the text file DoCmd.TransferText acLinkDelim, strLinkSpecRange, _ strLinkTable, strTextFileName Else 'If Not blnXL 'create a new link to the Excel file DoCmd.TransferSpreadsheet acLink, acSpreadsheetTypeExcel9, _ strLinkTable, strTextFileName, True, strLinkSpecRange End If 'Not blnXL Else 'If Dir(strTextFileName) <> "" 'not a valid filename or path LinkExternalFileADO = False End If 'Dir(strTextFileName) <> "" End If Proc_exit: 'cleanup and exit On Error Resume Next Set cat = Nothing Set errsCnn = Nothing Set errCurr = Nothing Set cnn = Nothing Exit Function Proc_err: If errsCnn.Count > 0 Then For Each errCurr In errsCnn MsgBox "Error #" & errCurr.Number & "--" & errCurr.Description _ & vbCrLf & CurrentProject.Name & ".LinkTextFileADO" Next errCurr errsCnn.Clear End If If Err <> 0 Then MsgBox Err.Number & "--" & Err.Description & vbCr _ & " in LinkTextFileADO", vbOKOnly End If LinkExternalFileADO = False Resume Proc_exit End Function 'LinkExternalFileADO(ByVal strTextFileName As String, _ ByVal strLinkTable As String, _ ByVal strLinkSpecRange As String, _ Optional blnXL As Boolean) As Boolean -----Original Message----- From: Colby, John [mailto:JColby at dispec.com] Sent: Monday, November 22, 2004 9:53 AM To: 'AccessD at DatabaseAdvisors.com' Subject: [AccessD] Linking to an excel spreadsheet Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Mon Nov 22 13:22:33 2004 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 22 Nov 2004 21:22:33 +0200 Subject: [AccessD] Some help please... References: <002601c4d0bb$388be310$0100a8c0@KOST36> Message-ID: <00a201c4d0c8$ab4d1a10$0100a8c0@KOST36> Guys, I have just found the solution... The problem fixed Thank's ----- Original Message ----- From: "Kostas Konstantinidis" To: "Access Developers discussion and problem solving" Sent: Monday, November 22, 2004 7:46 PM Subject: [AccessD] Some help please... > On a start form I use a list box witch on open responds like: > SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & > [Father_name] & ", " & [year_born] & ")" AS patient > FROM MT_basic_char > > I am trying to filter the patients names from a text box like: > Private Sub text_box_Change() > Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE > [Last_Name] like '" & Me![text_box].Text & "*'" > End Sub > > And continue with a double click to open tha main form filtered on: > Private Sub list2_DblClick(Cancel As Integer) > Dim stDocName As String > Dim stLinkCriteria As String > stDocName = "MT_basic_char" > stLinkCriteria = "[AM] = " & Me!list2.Value & "" > DoCmd.OpenForm stDocName, , , stLinkCriteria > End Sub > > My question is: on text_box change how it could be possible to apear also > all data: AM, Last_name, Father_name and year_born > in order to work the double click? > > thank's a lot > / kostas konstantinidis > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From markamatte at hotmail.com Mon Nov 22 15:35:52 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 22 Nov 2004 21:35:52 +0000 Subject: [AccessD] Some help please... In-Reply-To: <002601c4d0bb$388be310$0100a8c0@KOST36> Message-ID: Kostas, If I understand correctly...you want to display other information besides the name for the user to make their choice from. If you are using a combo box, you could include a PK in the select statement, indicate this as the 'bound column' on the properties of the combo box, hide this field with the 'column widths' property, and then use this field to filter the main form. Hope this helps. Thanks, Mark A. Matte >From: "Kostas Konstantinidis" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Some help please... >Date: Mon, 22 Nov 2004 19:46:38 +0200 > >On a start form I use a list box witch on open responds like: >SELECT MT_basic_char.AM, [Last_name] & " " & [First_name] & " (" & >[Father_name] & ", " & [year_born] & ")" AS patient >FROM MT_basic_char > >I am trying to filter the patients names from a text box like: >Private Sub text_box_Change() >Me![list2].RowSource = "SELECT [Last_Name] FROM [MT_basic_char] WHERE >[Last_Name] like '" & Me![text_box].Text & "*'" >End Sub > >And continue with a double click to open tha main form filtered on: >Private Sub list2_DblClick(Cancel As Integer) > Dim stDocName As String > Dim stLinkCriteria As String > stDocName = "MT_basic_char" > stLinkCriteria = "[AM] = " & Me!list2.Value & "" > DoCmd.OpenForm stDocName, , , stLinkCriteria >End Sub > >My question is: on text_box change how it could be possible to apear also >all data: AM, Last_name, Father_name and year_born >in order to work the double click? > >thank's a lot >/ kostas konstantinidis > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Nov 22 15:39:48 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 22 Nov 2004 13:39:48 -0800 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... References: <000c01c4d096$4efde370$fa10a8c0@Albatross> <1360.65.118.249.206.1101137603.squirrel@cetus.email.starband.net> Message-ID: <41A25CA4.806@shaw.ca> Get their network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. -------------- or you could try this subroutine to execute on the runtime startup as toolbar menus are disabled by runtime methods maybe after checking this is set. I forget the order of execution. Access.Application.AutomationSecurity = 1 ' msoAutomationSecurityLow This sub activates the Macro -> Security submenu to open ' the Macro Security dialog window for the user who is using ' the runtime version of Access '03 instead of the retail version, ' which may need to have the default security level changed in ' order to run the code in the modules. 'This sub requires the Microsoft Office 11.0 Library reference http://www.access.qbuilt.com/html/vba.html#SetMacroSecLvl ----------------- or Sagekey has an Access 2003 MSI install script that avoids this but is $425. ---------------- or build your own security certicate but then you still have to install in users certificate pool There are some easier ways but not if it is a runtime Greg Smith wrote: >Hello everyone! > >Is there a way to shut off the security messages you get in Access 2003 in >a runtime version of an application? I have them shut off on my computer >and it works fine here, but when I have the customer install it on their >computer(s) (they don't have Access installed at all), they get the >messages on startup about unsafe expressions, etc. They can't shut them >off on their computers because the application doesn't allow access to >those areas (restricted menus). > >I was hoping to be able to do it internally (in vb), but that's probably >exactly what MS is trying to prevent with the security. So far they've >succeeded and I've failed...and turning warnings on/off doesn't do it >either. > >Of course, if they have Access installed, I'll tell them to just shut off >the macro security (set it to 'low')...which has it's inherent dangers, >but in most cases is ok. > >Any help or suggestions would be greatly appreciated. > >TIA! > >Greg Smith >gregsmith at starband.net > > > > -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Mon Nov 22 16:57:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 23 Nov 2004 09:57:24 +1100 Subject: [AccessD] Change SubDatasheetName to [None] in code? In-Reply-To: Message-ID: <200411222257.iAMMvUx6021431@cooper.uws.edu.au> Howdy Create a Button on a form and call the button Command0 - form name is not important Copy everything below the line and paste it into the code behind the form Make sure you have a DAO reference Hope this helps Darren ____________________________________________________________________ Private Sub Command0_Click() TurnOffSubDataSheets End Sub Function TurnOffSubDataSheets() Dim MyDB As DAO.Database Dim MyProperty As DAO.Property Dim propName As String Dim PropType As Integer Dim propVal As String Dim strS As String Set MyDB = CurrentDb propName = "SubDataSheetName" PropType = 10 propVal = "[NONE]" On Error Resume Next For i = 0 To MyDB.TableDefs.Count - 1 If (MyDB.TableDefs(i).Attributes And dbSystemObject) = 0 Then If MyDB.TableDefs(i).Properties(propName).Value <> propVal Then MyDB.TableDefs(i).Properties(propName).Value = propVal intChangedTables = intChangedTables + 1 End If If Err.Number = 3270 Then Set MyProperty = MyDB.TableDefs(i).CreateProperty(propName) MyProperty.Type = PropType MyProperty.Value = propVal MyDB.TableDefs(i).Properties.Append MyProperty Else If Err.Number <> 0 Then MsgBox "Error: " & Err.Number & " on Table " _ & MyDB.TableDefs(i).Name & "." MyDB.Close Exit Function End If End If End If Next i MsgBox "The " & propName & _ " value for all non-system tables has been updated to " & propVal & "." MyDB.Close End Function From d.dick at uws.edu.au Mon Nov 22 16:57:24 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 23 Nov 2004 09:57:24 +1100 Subject: [AccessD] Design Problem In-Reply-To: Message-ID: <200411222257.iAMMvUx7021431@cooper.uws.edu.au> Hi Richard Just had the same design Q myself last week The consensus was to merge My Client and Organisation tables into 1 table and have an Identifier similar to IsClientOrOrg (Client = 1 Org = 2) Saved me a whole bunch of issues and I have moved on from that 'difficult' problem Hope this helps See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, 23 November 2004 12:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Design Problem Thanks Kath, Chris for your reply - this was my original thinking but then I had doubts. As the Recipients really may only have a name (and maybe address) I wondered whether they should have their own table. I will simply have to add logic to my FE (and have fields such as IsOrganisation, IsRecipient flags/fields on my Client table) so that when adding new Requestor Clients it displays invoice, vat etc details - but not for Recipient Clients. Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: 22 November 2004 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Problem Richard - I think if it was me I would only have one client table, from what you have said, but with 3 separate fields there, eg. 'Job' table: Job ID (autonumber) RequestorID (related to Client ID in Client table) PrincipalClientID (related to Client ID in Client table) RecipientID (related to Client ID in Client table) 'Client' table Client ID (autonumber) Name details Address details The fields RequestorID, PrincipalClientID and RecipientID would all relate to one Client table. That way all 'client' data would be stored in the one table and never duplicated, and you would have the flexibility of having any combination of the 3 fields in the Job table. The only mandatory field (it appears) would be the RequestorID. HTH Kath ----- Original Message ----- From: Griffiths, Richard To: AccessD at databaseadvisors.com Sent: Monday, November 22, 2004 10:28 PM Subject: [AccessD] Design Problem Hi Group I am having a brain blockage - can anyone help. I will try to be as brief as possible. I can't figure out how to design this one. Seems like different options - not sure which way to go. Here goes (may not be as complicated as it appears) - sorry its so long. Scenario: Client_1 (which can be an organisation or individual) can request a Job (interpretation) The Job can be carried out on behalf of a second Client_2 or not. The job may have a Patient/recipient (client_3??) of the job (interpreation) or not. Example 1 Charity OrgA (Client 1) requests an interpretation for a Medical Centre (Dr Smith - Client 2) and Mrs Jones (client 3/Patient) is the person receiving teh interpretation. Example 2 Charity OrgA (Client 1) requests an interpretation for a itself (Client 1) and the Recipient/Patient is itself(client_1) Example 3 Medical Centre (was previously Client 2) requests an interpretation for a itself (Client 2) What I am confused is whether to have one Client Table (that accomodates Orgs/Customers and Individuals/Patients) Or have 3 separate tables Client_1 table, Client_2 (aka Customer) table and a Patient/Person Table. All 3 entities hold address/contact info (Client 1 table needs to store invoice/finance data as well) To give a job table like this JobTable ======== JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_1_table ClientID_3--------->Client_1_table Other fields ..... or JobID ClientID_1--------->Client_1_table ClientID_2--------->Client_2_table ClientID_3--------->Client_3_table Other fields ..... The second option means that when Client_1 requests a job for itself the address data etc is duplicated into the Client_2 and Client_3 tables - does this really matter? Equally the Medical Centre (Client_2) may next week be Client_1 (request a job/service itself) Finally one more question is that I can't decide whether to do this as well - even thought there is a one-to-one job_client relationship (rather than store Client_1_ID, Client_2_ID, Client_3_ID in job table as above) do this???? JobTable ======== JobID Other fields ..... JobClient_1_Table ================= JobID Client_1_ID ...... JobClient_2_Table ================= JobID Client_2_ID ...... JobClient_3_Table ================= JobID Client_3_ID ...... Any thoughts? Many thanks Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 lmrazek at lcm-res.com Mon Nov 22 17:13:28 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Mon, 22 Nov 2004 17:13:28 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: Message-ID: <200411221813467.SM01820@hplaptop> Hi Charlotte: I'm currently evaluating components from ChartFX, ComponentOne and Nevron. Microsoft Graph provides about 80% of the functionality I need; I'm done trying to make it work. Thanks for the advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 22, 2004 10:45 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ActiveX Charting Control For Access? Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Mon Nov 22 17:18:16 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 22 Nov 2004 18:18:16 -0500 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <000801c4d0a5$f9224350$de1811d8@danwaters> References: <000801c4d0a5$f9224350$de1811d8@danwaters> Message-ID: <41A273B8.7010207@rogers.com> 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur Dan Waters wrote: >I did some internet research and found that there apparently isn't >anything that does 'perfect' translations - that is left to actual >people! It did seem that there were some not inexpensive software >solutions that would have been able to do a pretty good job. > >Translation on a PC is called Machine Translation. Machine translation >can take a document and take a 'first cut' at doing a translation. Then >someone who knows both languages can finish it off in less time. I'm >going to recommend this approach to my client. > >This first cut can be done from Word. > Open a Word document and highlight some text. > Select Tools | Language | Translate. > A Translate pane will appear at the right. > At the bottom see 'Translate via the Web'. > Select the language translation you want. > Push Go. > A web site will open with the Machine translation of the text > you highlighted. > >I tried to use the Look up in Dictionary feature, but that always came >back with No Suggestions. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Monday, November 22, 2004 7:04 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >No not on the fly. Every report is saved twice (once for English, >another for Spanish). This was all set up before I got here but I think >the difference in the text sizes (lengths) between the languages was a >major reason. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >Sent: Friday, November 19, 2004 3:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Jim, > >Are your reports partially translated on the fly? If not it seems that >you would need to have your original text information recorded in two >separate places - one for each language? > >If on the fly how is this done? > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >We have two of everything here at this point. Pick the language, print >the correct version report. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From dwaters at usinternet.com Mon Nov 22 17:33:54 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 17:33:54 -0600 Subject: [AccessD] ActiveX Charting Control For Access? In-Reply-To: <28941432.1101165439819.JavaMail.root@sniper17.securence.com> Message-ID: <001001c4d0eb$bb2802b0$de1811d8@danwaters> Larry, Office Web Components might work for you. It's not an ActiveX component - you set references to a couple of dll's. I'm pretty certain that you can set colors for series. HTH, Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Monday, November 22, 2004 5:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] ActiveX Charting Control For Access? Hi Charlotte: I'm currently evaluating components from ChartFX, ComponentOne and Nevron. Microsoft Graph provides about 80% of the functionality I need; I'm done trying to make it work. Thanks for the advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 22, 2004 10:45 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ActiveX Charting Control For Access? Have you looked at ChartFX? Charlotte Foust -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Saturday, November 20, 2004 5:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ActiveX Charting Control For Access? Hi: Does anyone have recommendations regarding charting/graphing software for Access XP? I'm currently a bit annoyed with the built-in charting capabilities for Access; it doesn't do the things I need (or at least I can't discover how to do it). Basically, I just need a flexible solution to create bar/line/pie graphs. The component should have the following features: 1. Ability to set colors (EX: Everytime I graph maintenance code "05", I'd like it to be RED) via code. (this is my main problem with Microsoft Graph right now). 2. Flexible labeling capabilities. 3. Compatible with Access XP. 4. Good output options ... Most of the graphs/charts will be printed. Thanks in advance for any help/advice. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Mon Nov 22 20:09:29 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 22 Nov 2004 21:09:29 -0500 Subject: [AccessD] Schedule a Query to run once a month In-Reply-To: <200411221547.iAMFlqL25040@databaseadvisors.com> References: <200411221547.iAMFlqL25040@databaseadvisors.com> Message-ID: <41A29BD9.5040304@rogers.com> I could be wrong, since I have never done this, but I'll take a WAG. Create a shortcut to the specific query, then schedule its execution using the Scheduler. Arthur Joe Hecht wrote: >Based on other discussions in this group, you need to have some program or >operating system scheduled event to call the mdb. > >Joe Hecht >jmhla at earthlink.net >28g >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller >Sent: Monday, November 22, 2004 7:41 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Schedule a Query to run once a month > >I have an mdb file that has an update query. I want this update query >to run once a month at a specific time. For example, the 28th day of the >month at 11:00 am. Is there a way to set this up to run even if the mdb >file is not open? > >--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 > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From mcaro at bigpond.net.au Mon Nov 22 20:45:58 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 23 Nov 2004 13:45:58 +1100 Subject: [AccessD] UNDO - Subform from Parent Message-ID: <004f01c4d106$901d1310$0100000a@MITSERVER> Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin From jwcolby at colbyconsulting.com Mon Nov 22 21:26:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 22 Nov 2004 22:26:56 -0500 Subject: [AccessD] UNDO - Subform from Parent In-Reply-To: <004f01c4d106$901d1310$0100000a@MITSERVER> Message-ID: <002f01c4d10c$4d01e8c0$e8dafea9@ColbyM6805> Martin, One issue you will run into is that a record is saved when focus leaves the form. Thus if a user is entering records in the subform and leaves the subform to click an undo on the parent, the changes in the child are saved and undo can no longer be used. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Monday, November 22, 2004 9:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] UNDO - Subform from Parent Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Nov 22 21:30:10 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 22 Nov 2004 21:30:10 -0600 Subject: [AccessD] UNDO - Subform from Parent In-Reply-To: <3269189.1101178071452.JavaMail.root@sniper13.securence.com> Message-ID: <000201c4d10c$bcfce6c0$de1811d8@danwaters> Martin, Try 'Me.subFrame.Form.Undo' The subFrame is the name of the container for the subform itself. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Monday, November 22, 2004 8:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] UNDO - Subform from Parent Ho folks Can anyone help me with the syntax to run an Undo on a subform from a button located in the parent form...... (how to run an Undo from a sub on its parent has been asked before... Darren Dick 03/06/2004) but I need it around the other way so it should be possible. Thanks Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Mon Nov 22 22:45:46 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Tue, 23 Nov 2004 15:45:46 +1100 Subject: [AccessD] UNDO - Subform from Parent References: <000201c4d10c$bcfce6c0$de1811d8@danwaters> Message-ID: <00a001c4d117$4c21e800$0100000a@MITSERVER> As John pointed out the record is saved as the subform loses focus so I've changed tack and decided to place an undo button inside each of my subforms.... not ideal as I wanted to keep all my buttons together but....it works! Thanks John & Dan Martin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, November 23, 2004 2:30 PM Subject: RE: [AccessD] UNDO - Subform from Parent > Martin, > > Try 'Me.subFrame.Form.Undo' > > The subFrame is the name of the container for the subform itself. > > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Monday, November 22, 2004 8:46 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] UNDO - Subform from Parent > > Ho folks > > Can anyone help me with the syntax to run an Undo on a subform from a > button located in the parent form...... > (how to run an Undo from a sub on its parent has been asked before... > Darren Dick 03/06/2004) but I need it around the other way so it should > be possible. > > Thanks > > Martin > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 mark.breen at gmail.com Tue Nov 23 02:18:08 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 08:18:08 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF9A7@DISABILITYINS01> Message-ID: <26a96cce04112300187eeb9f04@mail.gmail.com> Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > Does anyone have code for linking to an excel spreadsheet? > > If I manually create a link, the wizard finds all the fields, sets up with > the "first line has field names" etc. Everything works fine. However if > the table is not linked already, I need to create a tabledef, set the > SourceTableName and Connect properties. If I then try to append the > tabledef to db.tabledefs I get an error that no fields are defined. It is > obvious that a LOT more is involved here. It appears that I have to open > the spreadsheet, get the first line, create fields with the data in the > first line, somehow figure out the datatype of each column etc. Is there a > prebuilt code I can call to do all this stuff? If the wizard can do it, > then the code behind the wizard could do it for me. > > Has anyone ever done this? > > John W. Colby > The DIS Database Guy > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Nov 23 03:27:14 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 10:27:14 +0100 Subject: [AccessD] Selecting Languages - English or Spanish or Something Message-ID: Wonderful! Thank you so much Arthur. /gustav >>> artful at rogers.com 23-11-2004 00:18:16 >>> 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur From Gustav at cactus.dk Tue Nov 23 04:36:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 11:36:31 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi John That is what I mean. You open the workbook as a database, then browse the TableDefs collection and pick the table(s) you wish to link, be it by item or name: Function CheckXls() Dim dbs As DAO.Database Dim tdf As DAO.TableDef Set dbs = DBEngine(0).OpenDatabase("d:\temp\yourworkbook.xls", False, True, "Excel 5.0;HDR=YES;IMEX=2;") Debug.Print dbs.TableDefs.Count & " table(s):" For Each tdf In dbs.TableDefs Debug.Print , tdf.Name Next dbs.Close Set tdf = Nothing Set dbs = Nothing End Function Note that worksheet names carries a trailing "$" while Named Ranges don't. See my recent posting on "Search for linked documents...." /gustav >>> JColby at dispec.com 22-11-2004 19:38:52 >>> Gustav, You can link directly to a sheet in a .xls file, whereupon that sheet looks like a table in Access. The tdf is what is used to manipulate the linked table, at least in terms of discovering the name of the sheet, the name of the file it links to etc. I receive spreadsheets from the client. I link them in to the database, then write queries to append all the data from the spreadsheet into a raw data table. However, the spreadsheet is created by hand so the sheet name internal to the spreadsheet is not necessarily consistent from file to file. I am attempting to get the name of the sheet but have had instances where that failed. I have also had instances where I deleted the sheet and simply need to "relink" the spreadsheet from scratch. It is this process to which I am referring. Given a spreadsheet with a single sheet inside, with the data in a format such that the first line has field names, how do I "link" the spreadsheet to Access programmatically? John W. Colby The DIS Database Guy -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Monday, November 22, 2004 1:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linking to an excel spreadsheet Hi John Are you looking at the xls file as a database? It doesn't seem to be the case. The database has tables - worksheets or Named Ranges - it is those that are to be linked. /gustav >>> JColby at dispec.com 22-11-2004 18:52:47 >>> Does anyone have code for linking to an excel spreadsheet? If I manually create a link, the wizard finds all the fields, sets up with the "first line has field names" etc. Everything works fine. However if the table is not linked already, I need to create a tabledef, set the SourceTableName and Connect properties. If I then try to append the tabledef to db.tabledefs I get an error that no fields are defined. It is obvious that a LOT more is involved here. It appears that I have to open the spreadsheet, get the first line, create fields with the data in the first line, somehow figure out the datatype of each column etc. Is there a prebuilt code I can call to do all this stuff? If the wizard can do it, then the code behind the wizard could do it for me. Has anyone ever done this? John W. Colby The DIS Database Guy From Gustav at cactus.dk Tue Nov 23 05:04:39 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 12:04:39 +0100 Subject: [AccessD] #Num! Message-ID: Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? From jwcolby at colbyconsulting.com Tue Nov 23 06:10:09 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 07:10:09 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <004601c4d155$64999a70$e8dafea9@ColbyM6805> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 23 06:15:17 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 07:15:17 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <26a96cce04112300187eeb9f04@mail.gmail.com> Message-ID: <004701c4d156$1804fff0$e8dafea9@ColbyM6805> Mark, I did the same kinds of thing down in Mexico. A client ran a maquilladora making clothing. They were simply accustomed to Excel and able to manipulate data in it for analysis so we always exported our data out to Excel using similar concepts to what you are discussing. Rarely poking a cell at a time but often dropping the entire table out there. Then my friend would go in and format the data, manipulate it for summations etc. all with the macro recorder on. We would then in the end dump the data and have Access run the macros that he created. It worked very well! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 3:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > Does anyone have code for linking to an excel spreadsheet? > > If I manually create a link, the wizard finds all the fields, sets up > with the "first line has field names" etc. Everything works fine. > However if the table is not linked already, I need to create a > tabledef, set the SourceTableName and Connect properties. If I then > try to append the tabledef to db.tabledefs I get an error that no > fields are defined. It is obvious that a LOT more is involved here. > It appears that I have to open the spreadsheet, get the first line, > create fields with the data in the first line, somehow figure out the > datatype of each column etc. Is there a prebuilt code I can call to > do all this stuff? If the wizard can do it, then the code behind the > wizard could do it for me. > > Has anyone ever done this? > > John W. Colby > The DIS Database Guy > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 23 06:42:22 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 13:42:22 +0100 Subject: [AccessD] #Num! Message-ID: Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? From Gustav at cactus.dk Tue Nov 23 06:52:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 13:52:44 +0100 Subject: [AccessD] Linking to an excel spreadsheet Message-ID: Hi Mark A client had a similar need. I followed John's advice and used this method which is great because it separates the handling of data from the formatting and design of the workbooks. The solution has been running for a statistics database publishing each month via e-mail neat spreadsheet reports for over two years without any error. /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:15:17 >>> Mark, I did the same kinds of thing down in Mexico. A client ran a maquilladora making clothing. They were simply accustomed to Excel and able to manipulate data in it for analysis so we always exported our data out to Excel using similar concepts to what you are discussing. Rarely poking a cell at a time but often dropping the entire table out there. Then my friend would go in and format the data, manipulate it for summations etc. all with the macro recorder on. We would then in the end dump the data and have Access run the macros that he created. It worked very well! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 3:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, It is quite easy to talk to Excel, but I guess that it depends on what you need to achieve and which way you prefer to go about it. I have just completed five days coding, on-site for a large European retailer that are very, very security conscious. Unfortunately for you, I am not allowed to take work off site, believe it or not, I am not even allowed on the Internet or email. If it was not for that, I would just give you the mdb. In a nutshell, it prepares some data using normal queries. Once ready, I open an instance of Excel, add a sheet and then start poking the values into excel. The first two or three cells require that you get used to it, but once they are done, you can then fill the whole sheet. I am writing about 35000 cells of data from within nested loops that work down and across the page. >From that point, you can then programatically format the entire excel sheet, including setting page setups etc. I use the Macro Recorder to get the bones of the VBA that you need and then bring it back into Access. One thing that you have to be aware of is the object model in Excel. For example, the following code stumped me for a while yesterday I have three variables objXLApp as Excel. Application objXLBook as Excel.Workbook objXLSht as Excel.WorkSheet The following lines are how they are written in Access objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True I would have presumed that it would have been objXLSht on the second line of code. Anyway, it is not an Excel table, but I may suit you to just programatically pull the data in. Best of luck, Mark From accessd667 at yahoo.com Tue Nov 23 07:05:40 2004 From: accessd667 at yahoo.com (S D) Date: Tue, 23 Nov 2004 05:05:40 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041122113102.67318.qmail@web61108.mail.yahoo.com> Message-ID: <20041123130540.52003.qmail@web61105.mail.yahoo.com> Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! From mark.breen at gmail.com Tue Nov 23 07:08:18 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 13:08:18 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <004701c4d156$1804fff0$e8dafea9@ColbyM6805> References: <26a96cce04112300187eeb9f04@mail.gmail.com> <004701c4d156$1804fff0$e8dafea9@ColbyM6805> Message-ID: <26a96cce041123050873eba6cb@mail.gmail.com> Hello John, Would it not give you more control to do it this way? It is a little more complex, but if gives you total control. Especially if you use the tabledefs collection that Gustav describes above. That sounds interesting. Best of Luck Mark On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby wrote: > Mark, > > I did the same kinds of thing down in Mexico. A client ran a maquilladora > making clothing. They were simply accustomed to Excel and able to > manipulate data in it for analysis so we always exported our data out to > Excel using similar concepts to what you are discussing. Rarely poking a > cell at a time but often dropping the entire table out there. Then my > friend would go in and format the data, manipulate it for summations etc. > all with the macro recorder on. We would then in the end dump the data and > have Access run the macros that he created. It worked very well! > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 3:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > It is quite easy to talk to Excel, but I guess that it depends on what you > need to achieve and which way you prefer to go about it. > > I have just completed five days coding, on-site for a large European > retailer that are very, very security conscious. Unfortunately for you, I > am not allowed to take work off site, believe it or not, I am not even > allowed on the Internet or email. If it was not for that, I would just give > you the mdb. > > In a nutshell, it prepares some data using normal queries. Once ready, I > open an instance of Excel, add a sheet and then start poking the values into > excel. The first two or three cells require that you get used to it, but > once they are done, you can then fill the whole sheet. I am writing about > 35000 cells of data from within nested loops that work down and across the > page. > > >From that point, you can then programatically format the entire excel > sheet, including setting page setups etc. > > I use the Macro Recorder to get the bones of the VBA that you need and then > bring it back into Access. > > One thing that you have to be aware of is the object model in Excel. > > For example, the following code stumped me for a while yesterday > > I have three variables > objXLApp as Excel. Application > objXLBook as Excel.Workbook > objXLSht as Excel.WorkSheet > > The following lines are how they are written in Access objXLSht.Range("A1", > "C3").Select objXLApp.Selection.Font.Bold = True > > I would have presumed that it would have been objXLSht on the second line of > code. > > Anyway, it is not an Excel table, but I may suit you to just programatically > pull the data in. > > Best of luck, > > Mark > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John wrote: > > Does anyone have code for linking to an excel spreadsheet? > > > > If I manually create a link, the wizard finds all the fields, sets up > > with the "first line has field names" etc. Everything works fine. > > However if the table is not linked already, I need to create a > > tabledef, set the SourceTableName and Connect properties. If I then > > try to append the tabledef to db.tabledefs I get an error that no > > fields are defined. It is obvious that a LOT more is involved here. > > It appears that I have to open the spreadsheet, get the first line, > > create fields with the data in the first line, somehow figure out the > > datatype of each column etc. Is there a prebuilt code I can call to > > do all this stuff? If the wizard can do it, then the code behind the > > wizard could do it for me. > > > > Has anyone ever done this? > > > > John W. Colby > > The DIS Database Guy > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 cyx5 at cdc.gov Tue Nov 23 07:25:49 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 23 Nov 2004 08:25:49 -0500 Subject: [AccessD] Access XP - Access 2000 Message-ID: Inherited Database - not my fault. For the moment, I have an XP front end in A2K format that has a link to open up one of a gazillion backends until I can migrate the gazillion backends to one big a* backend in SQL with one front-end. So... I develop in XP due to the .printer capabilities. When this code (inherited, not my fault) runs, I get the dreaded 3033 error that I do not have the permissions to open up the database it is pointing to. If I open up Access 2000, I am able to open up the database, no problem. Any ideas? Would putting in the user id and password make this click? Thanks for the help. Private Sub Open_PartsDB() 'Hide ManufacturerDialog form, attach Parts Database tables, and open frmMainParts 'On Error GoTo Err_Open_PartsDB Dim strDocName As String Dim strLinkCriteria As String Dim tdfTmpParts As TableDef, tdfTmpPartsTC As TableDef, tdfTmpPartsProt As TableDef Dim strPrefix As String Dim strTblName As String Dim strMfr As String Dim dbsDest As DAO.Database Set dbsDest = CurrentDb() 'Create table objects Set tdfTmpParts = dbsDest.TableDefs("Parts") Set tdfTmpPartsTC = dbsDest.TableDefs("TC-Parts") Set tdfTmpPartsProt = dbsDest.TableDefs("TC-Protections") If IsNull(MfrID) Then MsgBox "Please click a manufacturer in the list" Else strDocName = "frmMainParts" strTblName = "Parts" strLinkCriteria = "q:\tc_parts\" & MfrID & "\" & MfrID & ".mdb" strPrefix = Left$(dbsDest.TableDefs("Parts").Connect, InStr(tdfTmpParts.Connect, "=")) tdfTmpParts.Connect = ";DATABASE=" & strLinkCriteria tdfTmpParts.RefreshLink strPrefix = Left$(dbsDest.TableDefs("TC-Parts").Connect, InStr(tdfTmpPartsTC.Connect, "=")) tdfTmpPartsTC.Connect = ";DATABASE=" & strLinkCriteria tdfTmpPartsTC.RefreshLink strPrefix = Left$(dbsDest.TableDefs("TC-Protections").Connect, InStr(tdfTmpPartsProt.Connect, "=")) tdfTmpPartsProt.Connect = ";DATABASE=" & strLinkCriteria tdfTmpPartsProt.RefreshLink If IsTableEmpty(strTblName) = True Then MsgBox "There are no records in the Parts Database for " & MfrID & ".", , "Parts table is empty" Exit Sub End If DoCmd.OpenForm strDocName, acNormal Forms!frmMainParts![MfrCode] = [MfrID] Forms![frmMainParts]![MfrName] = DLookup("[ManufacturerName]", "Manufacturers", "[ManufacturerCode] = MfrID") DoCmd.SetWarnings False DoCmd.OpenQuery ("~MakeMfrCode"), acNormal Me.Visible = False End If From JHewson at karta.com Tue Nov 23 07:35:31 2004 From: JHewson at karta.com (Jim Hewson) Date: Tue, 23 Nov 2004 07:35:31 -0600 Subject: [AccessD] #Num! Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D00@karta-exc-int.Karta.com> Couldn't you export 0 (zero) instead of null? Would Nz() work? Then delete all 0's in the Excel spreadsheet? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 actebs at actebs.com.au Tue Nov 23 07:41:26 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 24 Nov 2004 00:41:26 +1100 Subject: [AccessD] #Num! Message-ID: <2025BB6F17FCB54791F23CD5055833280886E9@starfleet.unknown.local> John, I'm pretty sure I've encountered this previously. Try using something like: If IsError(YourFieldName) then whatever else whatever End if HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Wednesday, 24 November 2004 12:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] #Num! Couldn't you export 0 (zero) instead of null? Would Nz() work? Then delete all 0's in the Excel spreadsheet? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 23 07:52:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 23 Nov 2004 08:52:23 -0500 Subject: [AccessD] #Num! In-Reply-To: <004601c4d155$64999a70$e8dafea9@ColbyM6805> Message-ID: <20041123135222.ZKJY2443.imf18aec.mail.bellsouth.net@SUSANONE> It's my experience, that most Excel error values need to be cured before importing them into Access. Susan H. I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). From jwcolby at colbyconsulting.com Tue Nov 23 08:06:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:06:04 -0500 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <26a96cce041123050873eba6cb@mail.gmail.com> Message-ID: <004b01c4d165$9216db10$e8dafea9@ColbyM6805> Well... You mean to import one field at a time? I am trying to get data in to Access from Excel. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, November 23, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking to an excel spreadsheet Hello John, Would it not give you more control to do it this way? It is a little more complex, but if gives you total control. Especially if you use the tabledefs collection that Gustav describes above. That sounds interesting. Best of Luck Mark On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby wrote: > Mark, > > I did the same kinds of thing down in Mexico. A client ran a > maquilladora making clothing. They were simply accustomed to Excel > and able to manipulate data in it for analysis so we always exported > our data out to Excel using similar concepts to what you are > discussing. Rarely poking a cell at a time but often dropping the > entire table out there. Then my friend would go in and format the > data, manipulate it for summations etc. all with the macro recorder > on. We would then in the end dump the data and have Access run the > macros that he created. It worked very well! > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 3:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > It is quite easy to talk to Excel, but I guess that it depends on what > you need to achieve and which way you prefer to go about it. > > I have just completed five days coding, on-site for a large European > retailer that are very, very security conscious. Unfortunately for > you, I am not allowed to take work off site, believe it or not, I am > not even allowed on the Internet or email. If it was not for that, I > would just give you the mdb. > > In a nutshell, it prepares some data using normal queries. Once > ready, I open an instance of Excel, add a sheet and then start poking > the values into excel. The first two or three cells require that you > get used to it, but once they are done, you can then fill the whole > sheet. I am writing about 35000 cells of data from within nested > loops that work down and across the page. > > >From that point, you can then programatically format the entire excel > sheet, including setting page setups etc. > > I use the Macro Recorder to get the bones of the VBA that you need and > then bring it back into Access. > > One thing that you have to be aware of is the object model in Excel. > > For example, the following code stumped me for a while yesterday > > I have three variables > objXLApp as Excel. Application > objXLBook as Excel.Workbook > objXLSht as Excel.WorkSheet > > The following lines are how they are written in Access > objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True > > I would have presumed that it would have been objXLSht on the second > line of code. > > Anyway, it is not an Excel table, but I may suit you to just > programatically pull the data in. > > Best of luck, > > Mark > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John > wrote: > > Does anyone have code for linking to an excel spreadsheet? > > > > If I manually create a link, the wizard finds all the fields, sets > > up with the "first line has field names" etc. Everything works > > fine. However if the table is not linked already, I need to create a > > tabledef, set the SourceTableName and Connect properties. If I then > > try to append the tabledef to db.tabledefs I get an error that no > > fields are defined. It is obvious that a LOT more is involved here. > > It appears that I have to open the spreadsheet, get the first line, > > create fields with the data in the first line, somehow figure out > > the datatype of each column etc. Is there a prebuilt code I can > > call to do all this stuff? If the wizard can do it, then the code > > behind the wizard could do it for me. > > > > Has anyone ever done this? > > > > John W. Colby > > The DIS Database Guy > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Tue Nov 23 08:07:48 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:07:48 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <004c01c4d165$d425ddd0$e8dafea9@ColbyM6805> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 23 08:08:11 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 09:08:11 -0500 Subject: [AccessD] #Num! In-Reply-To: <20041123135222.ZKJY2443.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <004d01c4d165$dd904c20$e8dafea9@ColbyM6805> Yup. PITA for sure. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, November 23, 2004 8:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! It's my experience, that most Excel error values need to be cured before importing them into Access. Susan H. I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mark.breen at gmail.com Tue Nov 23 09:02:09 2004 From: mark.breen at gmail.com (Mark Breen) Date: Tue, 23 Nov 2004 15:02:09 +0000 Subject: [AccessD] Linking to an excel spreadsheet In-Reply-To: <004b01c4d165$9216db10$e8dafea9@ColbyM6805> References: <26a96cce041123050873eba6cb@mail.gmail.com> <004b01c4d165$9216db10$e8dafea9@ColbyM6805> Message-ID: <26a96cce04112307025890f150@mail.gmail.com> All I am suggestions is that if you open a connection with the XL workbook in question, you can take what you like, how you like, row by row, col by col, as a range as gustav suggests, and taking his example further, a complete sheet. Depending on the volume and speed required, some of the options above might not be relevant, but the may be options to consider. With your programmatic skills, you can have the object model built in 30 minutes and then you can access (no pun intended) any data and put it into MS Access where ever you like, specifying formats as you go. Mark On Tue, 23 Nov 2004 09:06:04 -0500, John W. Colby wrote: > Well... You mean to import one field at a time? I am trying to get data in > to Access from Excel. > > > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > Sent: Tuesday, November 23, 2004 8:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linking to an excel spreadsheet > > Hello John, > > Would it not give you more control to do it this way? It is a little more > complex, but if gives you total control. > > Especially if you use the tabledefs collection that Gustav describes above. > That sounds interesting. > > Best of Luck > > Mark > > On Tue, 23 Nov 2004 07:15:17 -0500, John W. Colby > wrote: > > Mark, > > > > I did the same kinds of thing down in Mexico. A client ran a > > maquilladora making clothing. They were simply accustomed to Excel > > and able to manipulate data in it for analysis so we always exported > > our data out to Excel using similar concepts to what you are > > discussing. Rarely poking a cell at a time but often dropping the > > entire table out there. Then my friend would go in and format the > > data, manipulate it for summations etc. all with the macro recorder > > on. We would then in the end dump the data and have Access run the > > macros that he created. It worked very well! > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen > > Sent: Tuesday, November 23, 2004 3:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linking to an excel spreadsheet > > > > Hello John, > > > > It is quite easy to talk to Excel, but I guess that it depends on what > > you need to achieve and which way you prefer to go about it. > > > > I have just completed five days coding, on-site for a large European > > retailer that are very, very security conscious. Unfortunately for > > you, I am not allowed to take work off site, believe it or not, I am > > not even allowed on the Internet or email. If it was not for that, I > > would just give you the mdb. > > > > In a nutshell, it prepares some data using normal queries. Once > > ready, I open an instance of Excel, add a sheet and then start poking > > the values into excel. The first two or three cells require that you > > get used to it, but once they are done, you can then fill the whole > > sheet. I am writing about 35000 cells of data from within nested > > loops that work down and across the page. > > > > >From that point, you can then programatically format the entire excel > > sheet, including setting page setups etc. > > > > I use the Macro Recorder to get the bones of the VBA that you need and > > then bring it back into Access. > > > > One thing that you have to be aware of is the object model in Excel. > > > > For example, the following code stumped me for a while yesterday > > > > I have three variables > > objXLApp as Excel. Application > > objXLBook as Excel.Workbook > > objXLSht as Excel.WorkSheet > > > > The following lines are how they are written in Access > > objXLSht.Range("A1", "C3").Select objXLApp.Selection.Font.Bold = True > > > > I would have presumed that it would have been objXLSht on the second > > line of code. > > > > Anyway, it is not an Excel table, but I may suit you to just > > programatically pull the data in. > > > > Best of luck, > > > > Mark > > > > On Mon, 22 Nov 2004 12:52:47 -0500, Colby, John > > wrote: > > > Does anyone have code for linking to an excel spreadsheet? > > > > > > If I manually create a link, the wizard finds all the fields, sets > > > up with the "first line has field names" etc. Everything works > > > fine. However if the table is not linked already, I need to create a > > > tabledef, set the SourceTableName and Connect properties. If I then > > > try to append the tabledef to db.tabledefs I get an error that no > > > fields are defined. It is obvious that a LOT more is involved here. > > > It appears that I have to open the spreadsheet, get the first line, > > > create fields with the data in the first line, somehow figure out > > > the datatype of each column etc. Is there a prebuilt code I can > > > call to do all this stuff? If the wizard can do it, then the code > > > behind the wizard could do it for me. > > > > > > Has anyone ever done this? > > > > > > John W. Colby > > > The DIS Database Guy > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > > > > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 clh at christopherhawkins.com Tue Nov 23 10:55:51 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 23 Nov 2004 09:55:51 -0700 Subject: [AccessD] The form just won't save. Message-ID: <16260-2200411223165551812@christopherhawkins.com> I have an Access 2000 mdb file. Within this file is a particular form. Whenever I try to save changes to the form's module, it just won't save. It hourglasses on me forever and eventually returns a 'Not Responding' message. I have decompiled it. I have recompiled it. I have compacted it. I have repaired it. I do not know what else to do. Plus I'm working with a fever. Ack. Thoughts? Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com From Gustav at cactus.dk Tue Nov 23 11:08:13 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 23 Nov 2004 18:08:13 +0100 Subject: [AccessD] The form just won't save. Message-ID: Hi Christopher Create a new database and import all objects from the other. /gustav From Lambert.Heenan at AIG.com Tue Nov 23 11:23:46 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 23 Nov 2004 12:23:46 -0500 Subject: [AccessD] The form just won't save. Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A283D@xlivmbx21.aig.com> Sounds like you need to import all the objects in the db to a fresh, empty mdb file. I'd start by importing everything but the problem form (and also leave behind the MSYS* tables, Access will build them afresh). Then try importing the problem one. I guess that it will refuse to import as it has become corrupted. You will then have to rebuild it from scratch or import it from a backup copy of the application. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher > Hawkins > Sent: Tuesday, November 23, 2004 11:56 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] The form just won't save. > > I have an Access 2000 mdb file. Within this file is a particular > form. Whenever I try to save changes to the form's module, it just > won't save. It hourglasses on me forever and eventually returns a > 'Not Responding' message. > > I have decompiled it. I have recompiled it. I have compacted it. I > have repaired it. > > I do not know what else to do. > > Plus I'm working with a fever. Ack. > > Thoughts? > Respectfully, > > Christopher Hawkins > Software Developer > (559) 687-7591 > http://www.christopherhawkins.com > > From cyx5 at cdc.gov Tue Nov 23 09:46:24 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 23 Nov 2004 10:46:24 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? From max at sherman.org.uk Tue Nov 23 11:52:35 2004 From: max at sherman.org.uk (Max) Date: Tue, 23 Nov 2004 17:52:35 -0000 Subject: [AccessD] The form just won't save. In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A283D@xlivmbx21.aig.com> Message-ID: <20041123175231.FCSM1092.aamta05-winn.mailhost.ntl.com@server> Hi Chris, What sometimes works is to save the form as a copy. Select the form in the db window (right-click) and then copy it to a new form (right-click again and give it a new name). The new one often gets copied over without the offending corrupted byte! Also, as Lambert says, import it into a new DB, but BEFORE you copy the offending form, save a backup of what you have copied so far. You could also try my program which copies all selected objects as text and you can then import them from text into a new DB (forms, reports, queries, modules, etc). You will find it on Rogers site. It is called EATBloatV2.mdb (Extract as Text - defeats DB bloat). Max Sherman -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: 23 November 2004 17:24 To: 'Access Developers discussion and problem solving'; 'Christopher Hawkins' Subject: RE: [AccessD] The form just won't save. Sounds like you need to import all the objects in the db to a fresh, empty mdb file. I'd start by importing everything but the problem form (and also leave behind the MSYS* tables, Access will build them afresh). Then try importing the problem one. I guess that it will refuse to import as it has become corrupted. You will then have to rebuild it from scratch or import it from a backup copy of the application. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher > Hawkins > Sent: Tuesday, November 23, 2004 11:56 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] The form just won't save. > > I have an Access 2000 mdb file. Within this file is a particular > form. Whenever I try to save changes to the form's module, it just > won't save. It hourglasses on me forever and eventually returns a > 'Not Responding' message. > > I have decompiled it. I have recompiled it. I have compacted it. I > have repaired it. > > I do not know what else to do. > > Plus I'm working with a fever. Ack. > > Thoughts? > Respectfully, > > Christopher Hawkins > Software Developer > (559) 687-7591 > http://www.christopherhawkins.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.798 / Virus Database: 542 - Release Date: 18/11/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.798 / Virus Database: 542 - Release Date: 18/11/2004 From jwcolby at colbyconsulting.com Tue Nov 23 12:03:33 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 13:03:33 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: Message-ID: <006901c4d186$bf59c210$e8dafea9@ColbyM6805> Today? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Nov 23 12:59:01 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 23 Nov 2004 13:59:01 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B75@TTNEXCHCL2.hshhp.com> I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 Nov 23 14:10:56 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 23 Nov 2004 14:10:56 -0600 Subject: [AccessD] Re: #Num! In-Reply-To: <200411230925.iAN9PsL01590@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041123140947.014180d0@pop3.highstream.net> John, I think it is caused by text in a column that Access is interpreting as a number. So the fault is in the spreadsheet data, not Access. Robert At 03:25 AM 11/23/2004 -0600, you wrote: >Date: Mon, 22 Nov 2004 13:23:39 -0500 >From: "Colby, John" >Subject: [AccessD] #Num! >To: "'AccessD at DatabaseAdvisors.com'" >Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9A8 at DISABILITYINS01> >Content-Type: text/plain; charset="iso-8859-1" > >Does anyone know how to convert #Num! in a linked spreadsheet to a null or >something useable in Access? > >John W. Colby >The DIS Database Guy From mikedorism at adelphia.net Tue Nov 23 14:26:07 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 23 Nov 2004 15:26:07 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74486B75@TTNEXCHCL2.hshhp.com> Message-ID: <000201c4d19a$ad3f92d0$0b08a845@hargrove.internal> I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 rl_stewart at highstream.net Tue Nov 23 14:29:10 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 23 Nov 2004 14:29:10 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411230925.iAN9PsL01590@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> Or as I have heard in Russia... Pamoika (which is the fragrant liquid you see running from a dumpster) Arthur, I think your choice of examples could have been a bit less expressive of the vulgar. Robert At 03:25 AM 11/23/2004 -0600, you wrote: >Date: Mon, 22 Nov 2004 18:18:16 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A273B8.7010207 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >1. There are a pair of classic sentences that are used frequently to >derail machine translators: >a) Bill sent me a bill which I forwarded to Bill. >b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. >(This one I capitalized to help you through it, although it still takes >some work. To save you the trouble.... there is an English verb, to >buffalo. It means to baffle, or perhaps to bullshit. As in, when the >client asked question X, I buffaloed her. A particular variation on said >action is known as the Buffalo buffalo. This is a version particular to >the city -- as opposed to say the New Orleans buffalo. So, certain >buffalo who happen to reside in Buffalo do the Buffalo buffalo to other >buffalo who also happen to reside in Buffalo.) From Jdemarco at hudsonhealthplan.org Tue Nov 23 14:38:55 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 23 Nov 2004 15:38:55 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B7C@TTNEXCHCL2.hshhp.com> This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 mikedorism at adelphia.net Tue Nov 23 15:30:13 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 23 Nov 2004 16:30:13 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74486B7C@TTNEXCHCL2.hshhp.com> Message-ID: <000301c4d1a3$9faac5a0$0b08a845@hargrove.internal> Yup. They did one in Baltimore Nov 1-3. It will be back in Vegas next year. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 Tue Nov 23 16:29:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Nov 2004 14:29:00 -0800 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version References: Message-ID: <41A3B9AC.3010608@shaw.ca> Couple of quickie things to check was the program installed from a WinXP adminstrator account. Someone may run on a daily basis from a lesser permissioned account to avoid viruses. Win XP SP2 makes a lot of security permission changes. You might try re-installing with US English language selection set from the control panel then resetting to UK English. I know there were some problems with Win 2003 Server and Access runtimes. Nicholson, Karen wrote: >I create run time versions of a program for manufacturers all over the >globe. Mr. UK (he has a GREAT accent) is able to run the runtime >created in Access 2000 on his XP Professional 2002 SP1 installed that >has Access installed. > >The other unit has XP home, SP2, with no Access. The executable starts >and stops after five seconds. Is there an issue with home, SP2, >whatever, running runtimes? > >I am a bother today, aren't I? > > > > > -- Marty Connelly Victoria, B.C. Canada From stephen at bondsoftware.co.nz Tue Nov 23 17:57:20 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 12:57:20 +1300 Subject: [AccessD] OT Message-ID: <70F3D727890C784291D8433E9C418F29088979@server.bondsoftware.co.nz> Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From artful at rogers.com Tue Nov 23 18:04:18 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 23 Nov 2004 19:04:18 -0500 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> References: <5.1.0.14.2.20041123142629.013be320@pop3.highstream.net> Message-ID: <41A3D002.7080900@rogers.com> No offence intended. It just happens to be one of the most vivid examples of the elasticity of English. For a less vulgar example, consider the word "cool" or as the young would have it, "kewl". You may well be right; I should perhaps have used that word instead. But my intent was not vulgarity but rather illumination on the elasticity of English. Apologies if I offended. Robert L. Stewart wrote: > Or as I have heard in Russia... Pamoika (which is the fragrant > liquid you see running from a dumpster) Arthur, I think your > choice of examples could have been a bit less expressive of > the vulgar. > > Robert > > At 03:25 AM 11/23/2004 -0600, you wrote: > >> Date: Mon, 22 Nov 2004 18:18:16 -0500 >> From: Arthur Fuller >> Subject: Re: [AccessD] Selecting Languages - English or Spanish or >> Something >> To: Access Developers discussion and problem solving >> >> Message-ID: <41A273B8.7010207 at rogers.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> 1. There are a pair of classic sentences that are used frequently to >> derail machine translators: >> a) Bill sent me a bill which I forwarded to Bill. >> b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. >> (This one I capitalized to help you through it, although it still takes >> some work. To save you the trouble.... there is an English verb, to >> buffalo. It means to baffle, or perhaps to bullshit. As in, when the >> client asked question X, I buffaloed her. A particular variation on said >> action is known as the Buffalo buffalo. This is a version particular to >> the city -- as opposed to say the New Orleans buffalo. So, certain >> buffalo who happen to reside in Buffalo do the Buffalo buffalo to other >> buffalo who also happen to reside in Buffalo.) > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From cfoust at infostatsystems.com Tue Nov 23 18:36:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 23 Nov 2004 16:36:48 -0800 Subject: [AccessD] OT Message-ID: LOL Boy are you in for weather shock, not to mention culture shock! Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Tuesday, November 23, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From accessd at shaw.ca Tue Nov 23 18:54:58 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 16:54:58 -0800 Subject: [AccessD] Selecting Languages - English or Spanish or Something In-Reply-To: <41A273B8.7010207@rogers.com> Message-ID: Arthur: Now that was a good read (rant) ;-). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Monday, November 22, 2004 3:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Selecting Languages - English or Spanish or Something 1. There are a pair of classic sentences that are used frequently to derail machine translators: a) Bill sent me a bill which I forwarded to Bill. b) Buffalo buffalo Buffalo buffalo Buffalo buffalo. (This one I capitalized to help you through it, although it still takes some work. To save you the trouble.... there is an English verb, to buffalo. It means to baffle, or perhaps to bullshit. As in, when the client asked question X, I buffaloed her. A particular variation on said action is known as the Buffalo buffalo. This is a version particular to the city -- as opposed to say the New Orleans buffalo. So, certain buffalo who happen to reside in Buffalo do the Buffalo buffalo to other buffalo who also happen to reside in Buffalo.) There are many other variants on this problem, and to give my source credit they can be found in Steve Pinker's classic book "The Language Instinct". (For those unfamiliar with it and who also happen to wonder what the hell Noam Chomsky was on about, said book contains the most concise explication of Noam's basic theory that I have ever read.) Here are a few more nuggets for your translation-machine: Deer Kill 180,000 Queen Mary Having Bottom Scraped And of course, the old saw, from Marx (Groucho not Karl), "Time flies like an arrow. Fruit flies like a banana." An even more remarkable one, also courtesty Mr. Pinker.... here are 2 sentences, each spoken by a different person (presumably married to each other): a. I'm leaving you. b. Who is he? This one is my favourite. The other ambiguities are resoluble by parsing the sentence in question carefully. But this latter is remarkable in that: a) none of the words assembled convey a larger meaning (as is the case, for example, in "The New York Yankees"). b) all of the words assembled convey no inherent meaning (you have to assume a HUGE amount of cultural baggage in order to interpret this conversation; further, you have to assume certain mores, certain cultural perspectives, certain sexual preferences and so on, in order to make any sense of this snippet of conversation -- i.e. regardless of the gender of A, we can deduce that A is only interested in males, but that may be a faulty deduction; A could be bisexual and B unaware of this; it is also possible that A is leaving B not for someone else but simply because living with B is intolerable; and so on). IOW, virtually NONE of the meat in this conversation is contained either in the individual words or in their assemblage; ALL of the meaning is contained in the minds (and by extension the cultures) of the speakers. I have a lot of European friends, and almost all of them have commented at one time or another on the elasticity of English. Consider the word "fuck". It can be used in so many ways that it boggles the minds of newcomers to the English language. I fucked a lovely woman last night. I fucked a business competitor this morning. I tried to repair my motorcycle but fucked it up. Fuck you! Fuck that! Fuck you and the horse you rode in on. Fuck me. And so on. There's a common (and I might add falacious) maxim that the Inuit have 28 words for snow. This is true only in the sense that we have 100 words for cigarette or automobile (Honda Prelude, Dodge Caravan, etc.) The example cited above is the opposite phenomenon, as exemplified by another old riddle: Why is making love in a canoe like drinking Budweiser? Because it's fucking close to water. Insofar as writing remains utterly ambiguous (a pretty tough proposition, but let's let that pass), then translation-engines have a slim chance of accuracy. To the extent that language is a joy, a thing to be savoured, played with, caressed, teased and fondled, then machine-translation has virtually no chance of success. If we go no further than translating "File | Open..." then we may be safe; ditto for various error messages.... but even there, I have to point out that once I taught a course, one of whose students was confined to a wheelchair, and when a message came up saying something like "Invalid parameter", she said, "I'm an invalid." Which in turn led me to consider what a horrid word that was to describe people in her condition. Such persons are not invalid; they are just as valid as you and me. Yet another example. A close friend and colleague of mine, from Britain, gave me a copy of his new software to test. A couple of days later he asked me what I thought of it. I replied, "Not bad!". In Canada this is a compliment. In Britain this means that I couldn't find anything truly despicable to say about it, but was overall underwhelmed. His look of shock make me realize a cultural gap here of serious proportions. Chevrolet at one point release an automobile called "Nova". In Spanish this means "Does not go." (Neuve is the word for New.) All of which goes to say, do not trust translation-machines. If you need to translate, find a human. One final example, taken from the annals of machine-translation literature. They had an English to Russian translator and its opposite. They fed in an English sentence, translated it to Russian, and then translated it back. a) The spirit is willing but the flesh is weak. b) The vodka is good but the meat is rotten. Arthur Dan Waters wrote: >I did some internet research and found that there apparently isn't >anything that does 'perfect' translations - that is left to actual >people! It did seem that there were some not inexpensive software >solutions that would have been able to do a pretty good job. > >Translation on a PC is called Machine Translation. Machine translation >can take a document and take a 'first cut' at doing a translation. Then >someone who knows both languages can finish it off in less time. I'm >going to recommend this approach to my client. > >This first cut can be done from Word. > Open a Word document and highlight some text. > Select Tools | Language | Translate. > A Translate pane will appear at the right. > At the bottom see 'Translate via the Web'. > Select the language translation you want. > Push Go. > A web site will open with the Machine translation of the text > you highlighted. > >I tried to use the Look up in Dictionary feature, but that always came >back with No Suggestions. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Monday, November 22, 2004 7:04 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >No not on the fly. Every report is saved twice (once for English, >another for Spanish). This was all set up before I got here but I think >the difference in the text sizes (lengths) between the languages was a >major reason. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters >Sent: Friday, November 19, 2004 3:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Jim, > >Are your reports partially translated on the fly? If not it seems that >you would need to have your original text information recorded in two >separate places - one for each language? > >If on the fly how is this done? > >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > >We have two of everything here at this point. Pick the language, print >the correct version report. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, November 19, 2004 11:28 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Selecting Languages - English or Spanish or >Something > > >Switch to VB.Net and XML? (well, it IS Friday) :-} > >Charlotte Foust > > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, November 19, 2004 7:44 AM >To: Database Advisors >Subject: [AccessD] Selecting Languages - English or Spanish or Something > > >I have a client who would like their system to be able to present >reports in different languages, based on a selection made on-screen by >the reader. How would I get started making this happen? > > > >Thanks, > >Dan Waters > >ProMation Systems > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Nov 23 19:14:38 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 17:14:38 -0800 Subject: [Accessd] OT In-Reply-To: <70F3D727890C784291D8433E9C418F29088979@server.bondsoftware.co.nz> Message-ID: Hi Steven: If you decide to wander North a bit to Lotus land, the Vancouver Island, Victoria, you can always drop in on myself and Marty Connelly. (He is a bit of a party animal but that is just a unsubstantiated rumor.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT Any listers in Central Oregon? Am deserting the antipodean summer and heading that way in mid-December for a month R_and_R, love to swap ideas and experiences. Stephen Bond From jwcolby at colbyconsulting.com Tue Nov 23 20:23:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 23 Nov 2004 21:23:38 -0500 Subject: [AccessD] properties Message-ID: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From stephen at bondsoftware.co.nz Tue Nov 23 21:28:22 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 16:28:22 +1300 Subject: [AccessD] OT Message-ID: <70F3D727890C784291D8433E9C418F2908897A@server.bondsoftware.co.nz> I should 'fess up, my wife and I were married there 34 years ago, and some of her family is still there and we enjoy seeing them no matter the weather. But hey, mr taxman, this is a business trip, right? > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, 24 November 2004 1:37 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT > > > LOL Boy are you in for weather shock, not to mention culture shock! > > Charlotte Foust > > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas > and experiences. > > Stephen Bond > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From william.thompson1 at att.net Tue Nov 23 21:33:02 2004 From: william.thompson1 at att.net (William Thompson) Date: Tue, 23 Nov 2004 19:33:02 -0800 Subject: [AccessD] slightly off the topic of Excel to csv #Num! In-Reply-To: <004c01c4d165$d425ddd0$e8dafea9@ColbyM6805> Message-ID: <200411240332.iAO3WuL01551@databaseadvisors.com> This is not exactly what you specified, but it looked interesting: http://support.microsoft.com/kb/247412/EN-US/ Dim rs As ADODB... ... sData = rs.GetString(adClipString, , vbTab, vbCr, vbNullString) Open "C:\Test.txt" For Output As #1 Print #1, sData Close #1 ... Shell "C:\Program Files\Microsoft Office\Office\Excel.exe " & _ Chr(34) & "C:\Test.txt" & Chr(34), vbMaximizedFocus A possible way to re-engineer this - with potential for improvement - would be to create a querytable from a recordset, then write out a 'mirror' csv file. I've been looking at this type of thing for 'snapshots' of data that is constantly being refreshed, or to make dynamic data static. Bill -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] #Num! I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 6:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] #Num! Hi John I don't think you can. An option might be to import the worksheet to a temp table. Then you can manipulate the data as you wish. If you find a method please let us know. /gustav >>> JColby at dispec.com 22-11-2004 19:23:39 >>> Does anyone know how to convert #Num! in a linked spreadsheet to a null or something useable in Access? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 stephen at bondsoftware.co.nz Tue Nov 23 21:31:33 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 24 Nov 2004 16:31:33 +1300 Subject: [Accessd] OT Message-ID: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. Stephen Bond > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, 24 November 2004 2:15 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [Accessd] OT > > > Hi Steven: > > If you decide to wander North a bit to Lotus land, the > Vancouver Island, > Victoria, you can always drop in on myself and Marty > Connelly. (He is a bit > of a party animal but that is just a unsubstantiated rumor.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas and > experiences. > > Stephen Bond > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Nov 23 23:55:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 23 Nov 2004 21:55:30 -0800 Subject: [Accessd] OT References: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> Message-ID: <41A42252.4010206@shaw.ca> Well there is a 9 AM and 3PM Coho ferry twice a day from Port Angeles, this time of year it can be blown back into port when crossing the strait. I do hang out with the Women's Rugby club in Victoria, they make me wear one of their teeshirts that reads "Trample the wounded. Hurdle the dead" The U Vic faculty club does have a nice little pond with frogs and turtles jumping around in it tho. Stephen Bond wrote: >I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. > >Stephen Bond > > > >>-----Original Message----- >>From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] >>Sent: Wednesday, 24 November 2004 2:15 p.m. >>To: Access Developers discussion and problem solving >>Subject: RE: [Accessd] OT >> >> >>Hi Steven: >> >>If you decide to wander North a bit to Lotus land, the >>Vancouver Island, >>Victoria, you can always drop in on myself and Marty >>Connelly. (He is a bit >>of a party animal but that is just a unsubstantiated rumor.) >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond >>Sent: Tuesday, November 23, 2004 3:57 PM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] OT >> >> >>Any listers in Central Oregon? Am deserting the antipodean summer and >>heading that way in mid-December for a month R_and_R, love to >>swap ideas and >>experiences. >> >>Stephen Bond >> >>-- >>_______________________________________________ >>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 accessd at shaw.ca Wed Nov 24 00:26:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:07 -0800 Subject: [AccessD] OT In-Reply-To: <70F3D727890C784291D8433E9C418F2908897A@server.bondsoftware.co.nz> Message-ID: Congratulations Stephen: We just celebrated our thirtieth this year...but 34; I am impressed. Between you and me and other members of the list, enjoy your 'business' trip. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 7:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT I should 'fess up, my wife and I were married there 34 years ago, and some of her family is still there and we enjoy seeing them no matter the weather. But hey, mr taxman, this is a business trip, right? > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, 24 November 2004 1:37 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT > > > LOL Boy are you in for weather shock, not to mention culture shock! > > Charlotte Foust > > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas > and experiences. > > Stephen Bond > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 00:26:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:08 -0800 Subject: [AccessD] properties In-Reply-To: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: Hi John: I hope you are wrong and there is some other reason... If not what version!!? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 6:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Nov 24 00:26:08 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 23 Nov 2004 22:26:08 -0800 Subject: [Accessd] OT In-Reply-To: <70F3D727890C784291D8433E9C418F2908897B@server.bondsoftware.co.nz> Message-ID: See you....maybe. I will send you some details off-line, just in case. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond Sent: Tuesday, November 23, 2004 7:32 PM To: Access Developers discussion and problem solving Subject: RE: [Accessd] OT I have a cousin on the faculty of U Vic, last visited him in 1993. We are planning on visiting friends in Port Angeles, who knows what will happen after that. Thanks for the thought. Stephen Bond > -----Original Message----- > From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] > Sent: Wednesday, 24 November 2004 2:15 p.m. > To: Access Developers discussion and problem solving > Subject: RE: [Accessd] OT > > > Hi Steven: > > If you decide to wander North a bit to Lotus land, the > Vancouver Island, > Victoria, you can always drop in on myself and Marty > Connelly. (He is a bit > of a party animal but that is just a unsubstantiated rumor.) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stephen Bond > Sent: Tuesday, November 23, 2004 3:57 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT > > > Any listers in Central Oregon? Am deserting the antipodean summer and > heading that way in mid-December for a month R_and_R, love to > swap ideas and > experiences. > > Stephen Bond > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 24 03:44:56 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 24 Nov 2004 10:44:56 +0100 Subject: [AccessD] #Num! Message-ID: Hi John In case you haven't found out yet, here is: wkb.SaveAs FileName:="d:\temp\test.csv", FileFormat:=xlCSV, CreateBackup:=False /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 15:07:48 >>> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). From Jdemarco at hudsonhealthplan.org Wed Nov 24 06:45:57 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 24 Nov 2004 07:45:57 -0500 Subject: [AccessD] Runtime Program Access 2000 on XP Home Version Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486B82@TTNEXCHCL2.hshhp.com> I was hoping they'd move it out of Vegas next year. It's been there twice in row now. I wonder if the Baltimore agenda was as rich as the other. Maybe it's still up their site. Thanks, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 4:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version Yup. They did one in Baltimore Nov 1-3. It will be back in Vegas next year. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 3:39 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version This was the Vegas event. Did they do one in Baltimore? I wish I'd have known. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Tuesday, November 23, 2004 3:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I knew I should have asked if anybody from AccessD was going to Baltimore. 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 Jim DeMarco Sent: Tuesday, November 23, 2004 1:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Runtime Program Access 2000 on XP Home Version I've been fighting with our network/hardware staff for weeks over SP2s ability to break applications. At the recent Advisor.com event Ken Getz's demo was almost blown by SP2. Lucky for him (and us) Alison Balter let him copy his files to her machine w/o SP2 and they ran. Here's a link to get you started into the hell that is SP2: http://msdn.microsoft.com/security/productinfo/XPSP2/ HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 23, 2004 10:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Runtime Program Access 2000 on XP Home Version I create run time versions of a program for manufacturers all over the globe. Mr. UK (he has a GREAT accent) is able to run the runtime created in Access 2000 on his XP Professional 2002 SP1 installed that has Access installed. The other unit has XP home, SP2, with no Access. The executable starts and stops after five seconds. Is there an issue with home, SP2, whatever, running runtimes? I am a bother today, aren't I? -- _______________________________________________ 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 *********************************************************************************** "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 Wed Nov 24 07:56:53 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 24 Nov 2004 07:56:53 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <200411241251.iAOCp8L16300@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your > > choice of examples could have been a bit less expressive of > > the vulgar. > > > > Robert From JHewson at karta.com Wed Nov 24 08:03:58 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 24 Nov 2004 08:03:58 -0600 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068D0A@karta-exc-int.Karta.com> Or their, there and they're. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Wednesday, November 24, 2004 7:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your > > choice of examples could have been a bit less expressive of > > the vulgar. > > > > Robert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Nov 24 08:07:54 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 24 Nov 2004 08:07:54 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <19284598.1101263179516.JavaMail.root@sniper17.securence.com> Message-ID: <000c01c4d22e$fe9f5540$de1811d8@danwaters> John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Wed Nov 24 08:15:34 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 24 Nov 2004 06:15:34 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041123130540.52003.qmail@web61105.mail.yahoo.com> Message-ID: <20041124141534.33810.qmail@web61105.mail.yahoo.com> Can anybody please help me with this one? Tips/links/articles any thing will do!! Regrds, sd S D wrote: Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. From andy at minstersystems.co.uk Wed Nov 24 07:18:57 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 24 Nov 2004 14:18:57 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124141854.2A38C251E75@smtp.nildram.co.uk> Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 dwaters at usinternet.com Wed Nov 24 08:31:13 2004 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 24 Nov 2004 08:31:13 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <7198649.1101306110365.JavaMail.root@sniper18.securence.com> Message-ID: <000d01c4d232$40363a70$de1811d8@danwaters> Andy, We talked about how flexible the English language is during the 'English or Spanish or Something' discussion. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 7:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 07:44:39 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 24 Nov 2004 14:44:39 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124144436.197CE25D223@smtp.nildram.co.uk> This isn't flexible, this is broken (snapped, bust, fractured, ....) -- 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] Remoting In (was: properties) Date: 24/11/04 14:34 > > Andy, > > We talked about how flexible the English language is during the 'English > or Spanish or Something' discussion. > > <grin> > > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, November 24, 2004 7:19 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Remoting In (was: properties) > > Jeez what's this new verb "to remote in"? How does that decline? I > remote > in, he remoted in, he/she/it will have been remoted in.... What's wromg > with > using real words? ....grumble, grumble, grumble. Right, I'm going to > keyboard out of this email. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Remoting In (was: properties) > Date: 24/11/04 14:10 > > > > > John, > > > > What mechanism or method do you use to remote in to a client's site? > > I'm struggling with this now. > > > > Does anyone have recommendations or warnings about what works and what > > doesn't? > > > > Thanks! > > Dan Waters > > ProMation Systems > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > > Sent: Tuesday, November 23, 2004 8:24 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] properties > > > > I had a strange occurrence last night and I just wanted to check the > > list to > > see if anyone has ever seen such a thing. > > > > Windows XP / Office XP, I remoted in to a client site and started work > > on a > > FE. At some point I tried to compact / repair the db and got the old > > error > > message that &quot;the database could be renamed&quot; and the copy > was > saved to > > db2. > > I saved the original and then renamed db2 and continued work. I did > NOT > > test editing / adding records etc. The client was asked to test the > > changes > > and came back very upset that two entire tabs of the form were > &quot;locked&quot;. > > I > > remoted in tonight and started poking around and sure enough all the > > subforms (controls) on those two tabs have the enabled property set to > > no > > which prevents even setting the focus into the subform. Further all > of > > the > > &quot;allow edits/deletions/additions&quot; are set to no for the > actual > subforms > > themselves. > > > > My conjecture is that something happened at the point Access tried to > > close > > the database to do the compact/repair or when it attempted to delete > the > > original and rename the compacted copy. Given the damage I've found > so > > far > > I certainly don't trust the copy to continue work on. Who knows what > > else > > has been changed. > > > > Has anyone ever seen such a thing happen? I never have, but there are > > so > > many properties changed that I have to think that Access somehow set > > these > > properties at some point. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 Subscriptions at servicexp.com Wed Nov 24 08:53:55 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Wed, 24 Nov 2004 09:53:55 -0500 Subject: [AccessD] properties In-Reply-To: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: Hello John, Does your code in anyway manipulate those properties during runtime, and if so, does your code check for the property state at the forms start up? I say this because when your move to design mode, and make changes and save the form, the new property settings have a habit of getting saved also. I run into this situation often. Robert Gracie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 9:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Wed Nov 24 08:55:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark) Date: Wed, 24 Nov 2004 09:55:45 -0500 Subject: [AccessD] Remoting In (was: properties) Message-ID: Yep...Google it up;))))) Mark -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 9:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) Andy, We talked about how flexible the English language is during the 'English or Spanish or Something' discussion. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 7:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 From Developer at UltraDNT.com Wed Nov 24 09:34:39 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 24 Nov 2004 10:34:39 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: <002401c4d23b$1d02c240$0200a8c0@COA3> Good old pcAnywhere does alright via TCPIP over broadband, fast enough to do design work on the host (need a copy on both PC's however). GoToMyPC is my other choice, works on any PC with an Internet connection; good for file tranfers that are too large for email servers, but a bit slow for development but its outstanding to "dial home" to check email from anywhere. Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 GregSmith at starband.net Wed Nov 24 09:41:45 2004 From: GregSmith at starband.net (Greg Smith) Date: Wed, 24 Nov 2004 09:41:45 -0600 (CST) Subject: [AccessD] properties In-Reply-To: References: <001401c4d1cc$9fb37b90$e8dafea9@ColbyM6805> Message-ID: <1368.65.118.249.206.1101310905.squirrel@cetus.email.starband.net> John: I've had this happen before, with A97, A2k and A2003. I thought originally it was just A97...and I still have no clue as to why it does it. Just occasionally it won't replace the original...the computer is having a "bit phart" or something. Any time that it happens, I throw out both the original I was working on (hopefully backed up... before the compact/repair) and what it generated and start the process over with a fresh copy. I close out of Access (whatever version I was using at the time...) and sometimes, reboot the computer I was on before trying it again. By doing this, I've not run into what you've described because I've not kept the 'questionable' copy. And that's exactly why I do all of this so I don't have the app in some condition that's questionable. As for 'remoting in', ummm, hmmm, "I use RDC to connect ..."...:) that way I don't add any new words to the English language...and it doesn't NEED any new ones...LOL. Greg Smith gregsmith at starband.net > Hello John, > Does your code in anyway manipulate those properties during runtime, > and if > so, does your code check for the property state at the forms start up? > > I say this because when your move to design mode, and make changes and > save > the form, the new property settings have a habit of getting saved also. > > I run into this situation often. > > Robert Gracie > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 9:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error message that "the database could be renamed" and the copy was > saved to db2. I saved the original and then renamed db2 and continued > work. I did NOT test editing / adding records etc. The client was > asked to test the changes and came back very upset that two entire tabs > of the form were "locked". I remoted in tonight and started poking > around and sure enough all the subforms (controls) on those two tabs > have the enabled property set to no which prevents even setting the > focus into the subform. Further all of the "allow > edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far I certainly don't trust the copy to continue work on. > Who knows what else has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow set > these properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:42:06 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:42:06 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <20041124141854.2A38C251E75@smtp.nildram.co.uk> Message-ID: <000801c4d23c$2bd226c0$e8dafea9@ColbyM6805> Lol. Following your logic we would have NO words because someone had to make up a word to fit a noun / verb. There is nothing wrong with using "Remote in" to replace a paragraph describing the process in excruciating detail so that the person understands that you remoted in. ;-) I remoted in Or I used remote desktop to connect to my client's computer... I think I will remote in thanks! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, November 24, 2004 8:19 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Jeez what's this new verb "to remote in"? How does that decline? I remote in, he remoted in, he/she/it will have been remoted in.... What's wromg with using real words? ....grumble, grumble, grumble. Right, I'm going to keyboard out of this email. -- 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] Remoting In (was: properties) Date: 24/11/04 14:10 > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. > Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did > NOT test editing / adding records etc. The client was asked to test > the changes and came back very upset that two entire tabs of the form > were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no which prevents even setting the focus into the subform. Further > all of the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow > set these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:43:28 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:43:28 -0500 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: <000901c4d23c$5cca2980$e8dafea9@ColbyM6805> I use the remote desktop built in to windows XP. It's really pretty simple, the biggest issue is to insure that it is started as a service on the target desktop, then that ports are opened on the target router to allow them in. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Wed Nov 24 09:44:06 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 24 Nov 2004 10:44:06 -0500 Subject: [AccessD] #Num! In-Reply-To: Message-ID: <000a01c4d23c$6e774f00$e8dafea9@ColbyM6805> Cool, thanks! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, November 24, 2004 4:45 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John In case you haven't found out yet, here is: wkb.SaveAs FileName:="d:\temp\test.csv", FileFormat:=xlCSV, CreateBackup:=False /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 15:07:48 >>> I keep forgetting about this method. I have never automated Excel to save a sheet as a csv. Does anyone have working code to do this? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 23, 2004 7:42 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] #Num! Hi John That's not nice. Who makes such spreadsheets? How about saving (via code) the worksheet to a text file (.csv) and then read this line by line validating the fields? Not very fancy, I know, but what options are left? /gustav >>> jwcolby at colbyconsulting.com 23-11-2004 13:10:09 >>> I'm trying to import it into a temp table and get a "numeric overflow" when trying to do the append. This even though I have converted ALL of the fields to text. The issue is coming from a date field with null in the first record (but dates in most of the rest). -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmoss111 at bellsouth.net Wed Nov 24 09:48:30 2004 From: jmoss111 at bellsouth.net (jmoss111 at bellsouth.net) Date: Wed, 24 Nov 2004 10:48:30 -0500 Subject: [AccessD] Remoting In (was: properties) Message-ID: <20041124154829.DTNE1980.imf16aec.mail.bellsouth.net@mail.bellsouth.net> RAdmin is the fastest remote product that I've used. And PlanetDNS is similar to GoTopMyPC but maybe a little faster and much cheaper. JM > > From: "Steve Conklin \(Developer at UltraDNT\)" > Date: 2004/11/24 Wed AM 10:34:39 EST > To: "'Access Developers discussion and problem solving'" > > Subject: RE: [AccessD] Remoting In (was: properties) > > Good old pcAnywhere does alright via TCPIP over broadband, fast enough > to do design work on the host (need a copy on both PC's however). > GoToMyPC is my other choice, works on any PC with an Internet > connection; good for file tranfers that are too large for email servers, > but a bit slow for development but its outstanding to "dial home" to > check email from anywhere. > > Hth > Steve > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, November 24, 2004 9:08 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Remoting In (was: properties) > > > John, > > What mechanism or method do you use to remote in to a client's site? I'm > struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a FE. At some point I tried to compact / repair the db and got the > old error message that "the database could be renamed" and the copy was > saved to db2. I saved the original and then renamed db2 and continued > work. I did NOT test editing / adding records etc. The client was > asked to test the changes and came back very upset that two entire tabs > of the form were "locked". I remoted in tonight and started poking > around and sure enough all the subforms (controls) on those two tabs > have the enabled property set to no which prevents even setting the > focus into the subform. Further all of the "allow > edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close the database to do the compact/repair or when it attempted to > delete the original and rename the compacted copy. Given the damage > I've found so far I certainly don't trust the copy to continue work on. > Who knows what else has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so many properties changed that I have to think that Access somehow set > these properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 Nov 24 09:50:43 2004 From: john at winhaven.net (John Bartow) Date: Wed, 24 Nov 2004 09:50:43 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000c01c4d22e$fe9f5540$de1811d8@danwaters> Message-ID: Gustav just pointed me to NetOP (http://www.crossteccorp.com/) which is really fast. Just bought a license. Thanks Again Gustav! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 24 09:56:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 Nov 2004 09:56:53 -0600 Subject: [AccessD] Remoting In (was: properties) Message-ID: <123701F54509D9119A4F00D0B747349016D0CC@main2.marlow.com> I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 24 10:33:31 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 24 Nov 2004 17:33:31 +0100 Subject: [AccessD] Remoting In (was: properties) Message-ID: OK John, you are welcome. The nice thing with NetOp is that it can find its way through any corparate firewall and security system - a drawing at their site illustrates this fine. /gustav >>> john at winhaven.net 24-11-2004 16:50:43 >>> Gustav just pointed me to NetOP (http://www.crossteccorp.com/) which is really fast. Just bought a license. Thanks Again Gustav! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems From cyx5 at cdc.gov Wed Nov 24 11:27:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 24 Nov 2004 12:27:12 -0500 Subject: [AccessD] I Have Lost my Property!! Message-ID: Name, Modified, Created, Type.... Where did my properties column go in database design? XP version. I am beginning to not like XP. Any suggestions? From john at winhaven.net Wed Nov 24 11:48:23 2004 From: john at winhaven.net (John Bartow) Date: Wed, 24 Nov 2004 11:48:23 -0600 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <123701F54509D9119A4F00D0B747349016D0CC@main2.marlow.com> Message-ID: Drew: Do you have any issues with the firewall/gateway/proxy server? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, November 24, 2004 9:57 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remoting In (was: properties) I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Wed Nov 24 12:22:16 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 24 Nov 2004 10:22:16 -0800 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <000901c4d23c$5cca2980$e8dafea9@ColbyM6805> Message-ID: XP Remote in needs port 3389 open. Remotely yours Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, November 24, 2004 7:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) I use the remote desktop built in to windows XP. It's really pretty simple, the biggest issue is to insure that it is started as a service on the target desktop, then that ports are opened on the target router to allow them in. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, November 24, 2004 9:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Wed Nov 24 12:41:21 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 24 Nov 2004 13:41:21 -0500 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> References: <5.1.0.14.2.20041124075614.012ae938@pop3.highstream.net> Message-ID: <41A4D5D1.4020508@rogers.com> That is no indication of the elasticity of language; it's simply a case of homonyms. Robert L. Stewart wrote: > I think the words to, too, and two would also have fit. > > At 06:51 AM 11/24/2004 -0600, you wrote: > >> Date: Tue, 23 Nov 2004 19:04:18 -0500 >> From: Arthur Fuller >> Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or >> Something >> To: Access Developers discussion and problem solving >> >> Message-ID: <41A3D002.7080900 at rogers.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> No offence intended. It just happens to be one of the most vivid >> examples of the elasticity of English. For a less vulgar example, >> consider the word "cool" or as the young would have it, "kewl". You may >> well be right; I should perhaps have used that word instead. But my >> intent was not vulgarity but rather illumination on the elasticity of >> English. Apologies if I offended. >> >> Robert L. Stewart wrote: >> >> > Or as I have heard in Russia... Pamoika (which is the fragrant >> > liquid you see running from a dumpster) Arthur, I think your >> > choice of examples could have been a bit less expressive of >> > the vulgar. >> > >> > Robert > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 From Lambert.Heenan at AIG.com Wed Nov 24 12:53:32 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 24 Nov 2004 13:53:32 -0500 Subject: [AccessD] I Have Lost my Property!! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A285A@xlivmbx21.aig.com> Try resizing the Name column by dragging the vertical line between columns. It should then reveal the hidden 'Description' (not 'Properties') column. You'll need to drag from the right side of the line, not the left. BTW, exactly the same thing hastens in Access 97, so don't blame XP :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Wednesday, November 24, 2004 12:27 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] I Have Lost my Property!! > > Name, Modified, Created, Type.... Where did my properties column go in > database design? XP version. I am beginning to not like XP. Any > suggestions? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Nov 24 13:06:44 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 Nov 2004 13:06:44 -0600 Subject: [AccessD] Remoting In (was: properties) Message-ID: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> No. Remote Admin can act as it's own router (for other Remote Admin sessions). So you just have to make one computer with the Remote Admin Server on it 'visible' to the internet (on whatever port you use, which is customizable). Then if you want to connect to an internal computer, you 'route' through that server to get to anything in house. What I like about Remote Admin is that it is very lightweight, extremely fast (works very well even over a dialup), and it does use NT Security if you want it too. They are working on version 3 (which is in beta). It has a lot of features that I have wanted, which will really make it the absolute top grade Remote software out there. Drew -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Wednesday, November 24, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Remoting In (was: properties) Drew: Do you have any issues with the firewall/gateway/proxy server? John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Wednesday, November 24, 2004 9:57 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Remoting In (was: properties) I recommend Remote Administrator http://www.famatech.com Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, November 24, 2004 8:08 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Remoting In (was: properties) John, What mechanism or method do you use to remote in to a client's site? I'm struggling with this now. Does anyone have recommendations or warnings about what works and what doesn't? Thanks! Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, November 23, 2004 8:24 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] properties I had a strange occurrence last night and I just wanted to check the list to see if anyone has ever seen such a thing. Windows XP / Office XP, I remoted in to a client site and started work on a FE. At some point I tried to compact / repair the db and got the old error message that "the database could be renamed" and the copy was saved to db2. I saved the original and then renamed db2 and continued work. I did NOT test editing / adding records etc. The client was asked to test the changes and came back very upset that two entire tabs of the form were "locked". I remoted in tonight and started poking around and sure enough all the subforms (controls) on those two tabs have the enabled property set to no which prevents even setting the focus into the subform. Further all of the "allow edits/deletions/additions" are set to no for the actual subforms themselves. My conjecture is that something happened at the point Access tried to close the database to do the compact/repair or when it attempted to delete the original and rename the compacted copy. Given the damage I've found so far I certainly don't trust the copy to continue work on. Who knows what else has been changed. Has anyone ever seen such a thing happen? I never have, but there are so many properties changed that I have to think that Access somehow set these properties at some point. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Wed Nov 24 15:01:44 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 24 Nov 2004 13:01:44 -0800 Subject: [AccessD] Remoting In (was: properties) In-Reply-To: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D0CE@main2.marlow.com> Message-ID: for customer support, I like using Ultr at Vnc Cost: free I have the end user install, and then send me their connection by right clicking the icon and click on 'add new client' then they just type my URL and BOOM! it's all done... no need for pwds or fidling w/ Company Networks. it IS fast over DSL 128k up. the only problem is that you must ask them to install the software themselves. but since you don't have to ask for any changes to their firewall it works so easily :) sorta like a gotomypc except they send you their screen. plus w/ Ultr at VNC you can FTP files over when you need to and it sports a chat client... also very nice. nothing like IM, but hey it works. On Wed, 24 Nov 2004 13:06:44 -0600, dwutka at marlow.com wrote: > No. Remote Admin can act as it's own router (for other Remote Admin > sessions). So you just have to make one computer with the Remote Admin > Server on it 'visible' to the internet (on whatever port you use, which is > customizable). Then if you want to connect to an internal computer, you > 'route' through that server to get to anything in house. > > What I like about Remote Admin is that it is very lightweight, extremely > fast (works very well even over a dialup), and it does use NT Security if > you want it too. > > They are working on version 3 (which is in beta). It has a lot of features > that I have wanted, which will really make it the absolute top grade Remote > software out there. > > Drew > > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Wednesday, November 24, 2004 11:48 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Remoting In (was: properties) > > Drew: > Do you have any issues with the firewall/gateway/proxy server? > > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > DWUTKA at marlow.com > Sent: Wednesday, November 24, 2004 9:57 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Remoting In (was: properties) > > I recommend Remote Administrator http://www.famatech.com > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Wednesday, November 24, 2004 8:08 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Remoting In (was: properties) > > John, > > What mechanism or method do you use to remote in to a client's site? > I'm struggling with this now. > > Does anyone have recommendations or warnings about what works and what > doesn't? > > Thanks! > Dan Waters > ProMation Systems > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Tuesday, November 23, 2004 8:24 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] properties > > I had a strange occurrence last night and I just wanted to check the > list to > see if anyone has ever seen such a thing. > > Windows XP / Office XP, I remoted in to a client site and started work > on a > FE. At some point I tried to compact / repair the db and got the old > error > message that "the database could be renamed" and the copy was saved to > db2. > I saved the original and then renamed db2 and continued work. I did NOT > test editing / adding records etc. The client was asked to test the > changes > and came back very upset that two entire tabs of the form were "locked". > I > remoted in tonight and started poking around and sure enough all the > subforms (controls) on those two tabs have the enabled property set to > no > which prevents even setting the focus into the subform. Further all of > the > "allow edits/deletions/additions" are set to no for the actual subforms > themselves. > > My conjecture is that something happened at the point Access tried to > close > the database to do the compact/repair or when it attempted to delete the > original and rename the compacted copy. Given the damage I've found so > far > I certainly don't trust the copy to continue work on. Who knows what > else > has been changed. > > Has anyone ever seen such a thing happen? I never have, but there are > so > many properties changed that I have to think that Access somehow set > these > properties at some point. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! From roz.clarke at donnslaw.co.uk Thu Nov 25 02:50:05 2004 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Thu, 25 Nov 2004 08:50:05 -0000 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Som ething Message-ID: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Anything that's spelt differently is no problem for text translation, only aural translation. So I don't think those *would* work! Right (correct) and right (hand) and free (at liberty) and free (gratuit) are the only ones I can think of just now. Roz -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: 24 November 2004 14:04 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: Selecting Languages - English or Spanish or Something Or their, there and they're. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Wednesday, November 24, 2004 7:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Selecting Languages - English or Spanish or Something I think the words to, too, and two would also have fit. At 06:51 AM 11/24/2004 -0600, you wrote: >Date: Tue, 23 Nov 2004 19:04:18 -0500 >From: Arthur Fuller >Subject: Re: [AccessD] Re: Selecting Languages - English or Spanish or > Something >To: Access Developers discussion and problem solving > >Message-ID: <41A3D002.7080900 at rogers.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >No offence intended. It just happens to be one of the most vivid >examples of the elasticity of English. For a less vulgar example, >consider the word "cool" or as the young would have it, "kewl". You may >well be right; I should perhaps have used that word instead. But my >intent was not vulgarity but rather illumination on the elasticity of >English. Apologies if I offended. > >Robert L. Stewart wrote: > > > Or as I have heard in Russia... Pamoika (which is the fragrant > > liquid you see running from a dumpster) Arthur, I think your choice > > of examples could have been a bit less expressive of the vulgar. > > > > Robert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From artful at rogers.com Sat Nov 27 19:18:36 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 27 Nov 2004 20:18:36 -0500 Subject: [AccessD] Test In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> References: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Message-ID: <41A9276C.7080103@rogers.com> Just checking. Dead quiet around here this weekend. Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 From jwcolby at colbyconsulting.com Sat Nov 27 19:34:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 27 Nov 2004 20:34:26 -0500 Subject: [AccessD] Test In-Reply-To: <41A9276C.7080103@rogers.com> Message-ID: <000201c4d4ea$6911da70$e8dafea9@ColbyM6805> 'Deed it is! John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, November 27, 2004 8:19 PM To: Access Developers discussion and problem solving Subject: [AccessD] Test Just checking. Dead quiet around here this weekend. Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 27 19:41:17 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 17:41:17 -0800 Subject: [AccessD] Switchboards Message-ID: <001201c4d4eb$5d83fa70$6501a8c0@delllaptop> I think it was this list someone asked about more robust switchboards. Take a look here: http://www.peterssoftware.com/abs.htm JOE HECHT LOS ANGELES CA jmhla at earthlink.net From EricGoetz at egisystems.com Sat Nov 27 20:04:52 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Sat, 27 Nov 2004 18:04:52 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EB7@servera22.doma.ops> Hi, I thought I'd incorporate a little XML in transferring data from an Access 2003 mdb to an Excel spreadsheet. The Excel XML List looks like a useful feature. The trouble is, I can't get Access to output the XML. I'm running Access 2003 as part of a complete install of Office 2003 Enterprise Edition with SP1. I've tried this on two machines: XPProSP1a and XPProSP2. I've wasted my day isolating a test case, and here it is... Test A, make sure you can do a simple export to XML. 1. Take a fresh copy of Northwind.mdb 2. Right click on the query called "Alphabetical List of Products" and select "Export..." 3. Use the combobox "Save as type:" to select XML. 4. Click "Export" 5. Take the defaults on the subsequent dialogs. 6. Open the ".xml" file that you just created. 7. WOW! You now know how to use XML! Test B, actually try to use XML to do some work. 1. Open the query "Alphabetical List of Products" in design view. 2. Add criteria to "CatagoryName" of Like "S*", which gives SQL of: SELECT Products.*, Categories.CategoryName FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID WHERE (((Categories.CategoryName) Like "S*") AND (Products.Discontinued)=No)); 3. Run the query to see that you get the 12 products from the Seafood category. 4. Save the query. 5. Perform steps 2 through 6 from Test A. 6. I get a nearly empty file. HUH? I thought I knew how to use XML. How about you? It seems that just about any calculation in the WHERE clause kills ExportXML. I've tried it from VBA as well as the manual method employed above. Thanks, Eric From jmhla at earthlink.net Sat Nov 27 22:40:30 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 20:40:30 -0800 Subject: [AccessD] code problem Message-ID: <000701c4d504$675844c0$6501a8c0@delllaptop> I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Itsame2000 at sbcglobal.net Sat Nov 27 22:51:27 2004 From: Itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 22:51:27 -0600 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: I'm guessing you just want to enclose the NewData string in single quotes. Try this. strMsg = "'" & NewData & "' is not in the list. " -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 10:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Sat Nov 27 22:52:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 20:52:28 -0800 Subject: [AccessD] A2003 Macro Security in Runtime "issue"... In-Reply-To: <41A25CA4.806@shaw.ca> Message-ID: <001501c4d506$1368c590$6501a8c0@delllaptop> Would turning off warnings in tools options help on this? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, November 22, 2004 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... Get their network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. -------------- or you could try this subroutine to execute on the runtime startup as toolbar menus are disabled by runtime methods maybe after checking this is set. I forget the order of execution. Access.Application.AutomationSecurity = 1 ' msoAutomationSecurityLow This sub activates the Macro -> Security submenu to open ' the Macro Security dialog window for the user who is using ' the runtime version of Access '03 instead of the retail version, ' which may need to have the default security level changed in ' order to run the code in the modules. 'This sub requires the Microsoft Office 11.0 Library reference http://www.access.qbuilt.com/html/vba.html#SetMacroSecLvl ----------------- or Sagekey has an Access 2003 MSI install script that avoids this but is $425. ---------------- or build your own security certicate but then you still have to install in users certificate pool There are some easier ways but not if it is a runtime Greg Smith wrote: >Hello everyone! > >Is there a way to shut off the security messages you get in Access 2003 in >a runtime version of an application? I have them shut off on my computer >and it works fine here, but when I have the customer install it on their >computer(s) (they don't have Access installed at all), they get the >messages on startup about unsafe expressions, etc. They can't shut them >off on their computers because the application doesn't allow access to >those areas (restricted menus). > >I was hoping to be able to do it internally (in vb), but that's probably >exactly what MS is trying to prevent with the security. So far they've >succeeded and I've failed...and turning warnings on/off doesn't do it >either. > >Of course, if they have Access installed, I'll tell them to just shut off >the macro security (set it to 'low')...which has it's inherent dangers, >but in most cases is ok. > >Any help or suggestions would be greatly appreciated. > >TIA! > >Greg Smith >gregsmith at starband.net > > > > -- 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 jwcolby at colbyconsulting.com Sat Nov 27 22:57:07 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 27 Nov 2004 23:57:07 -0500 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: <000301c4d506$b9593d90$e8dafea9@ColbyM6805> > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Nov 27 22:59:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 28 Nov 2004 14:59:57 +1000 Subject: [AccessD] Re: Selecting Languages - English or Spanish or Som ething In-Reply-To: <61F915314798D311A2F800A0C9C8318805CED83B@dibble.observatory.donnslaw.co.uk> Message-ID: <41A9E7EC.13652.635CC48@lexacorp.com.pg> On 25 Nov 2004 at 8:50, Roz Clarke wrote: > Anything that's spelt differently is no problem for text translation, only > aural translation. So I don't think those *would* work! > > Right (correct) and right (hand) and free (at liberty) and free (gratuit) > are the only ones I can think of just now. > Take a look at the number of meanings for the words "set" and "run" in any good dictionary :-) As an aside, most difficult words to translate: http://news.bbc.co.uk/2/hi/africa/3830521.stm (I'm coming in on this a bit late. I've just spent the last week sailing from the Whitsundays in Australia to PNG and I'm just catching up on a weeks worth of email. A great experience. My first time to sail a square rigger - a 53ft brigantine.) -- Stuart From jmhla at earthlink.net Sat Nov 27 23:06:39 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:06:39 -0800 Subject: [AccessD] code problem In-Reply-To: <000301c4d506$b9593d90$e8dafea9@ColbyM6805> Message-ID: <001601c4d508$0dff0d10$6501a8c0@delllaptop> Thanks John, You have a family. What are you doing here on a Sat Night? ; ) JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 27, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Sat Nov 27 23:14:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 28 Nov 2004 00:14:23 -0500 Subject: [AccessD] code problem In-Reply-To: <001601c4d508$0dff0d10$6501a8c0@delllaptop> Message-ID: <000401c4d509$22d31fa0$e8dafea9@ColbyM6805> Shopping for a laptop for my wife. 8~) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, November 28, 2004 12:07 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem Thanks John, You have a family. What are you doing here on a Sat Night? ; ) JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, November 27, 2004 8:57 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] code problem > strMsg = "'"& NewData &"'" is not in the list. " Use: strMsg = "'" & NewData & "'" & " is not in the list. " John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] code problem I am copying and will attribute the following code from KG et al ADH Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) Dim strMsg As String Dim rst As Recordset Dim db As Database strMsg = "'"& NewData &"'" is not in the list. " strMsg = strMsg & "Would you like to add them?" Does any one know why the first strMsg line is evaluating to to red ? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 27 23:27:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:27:20 -0800 Subject: [AccessD] Some more Sat night code help please. Message-ID: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net From itsame2000 at sbcglobal.net Sat Nov 27 23:41:52 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:41:52 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Message-ID: <20041128054152.64502.qmail@web81504.mail.yahoo.com> A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Itsame2000 at sbcglobal.net Sat Nov 27 23:43:54 2004 From: Itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 23:43:54 -0600 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <001801c4d50a$f2364a50$6501a8c0@delllaptop> Message-ID: You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Sat Nov 27 23:47:49 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:47:49 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <20041128054152.64502.qmail@web81504.mail.yahoo.com> Message-ID: <20041128054749.23698.qmail@web81502.mail.yahoo.com> Sorry about the duplicate email. I didn't realize the first email left my outbox. Jeremy Toves wrote: A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sat Nov 27 23:52:19 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 21:52:19 -0800 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: Message-ID: <002101c4d50e$6febf690$6501a8c0@delllaptop> Thanks Jeremy, that was it. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Some more Sat night code help please. You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 itsame2000 at sbcglobal.net Sat Nov 27 23:59:05 2004 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Sat, 27 Nov 2004 21:59:05 -0800 (PST) Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <002101c4d50e$6febf690$6501a8c0@delllaptop> Message-ID: <20041128055905.36313.qmail@web81508.mail.yahoo.com> No problem. I'm glad I could help. Joe Hecht wrote: Thanks Jeremy, that was it. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Some more Sat night code help please. You are looking for a space and not a null. They aren't the same thing. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Thanks, Jeremy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Saturday, November 27, 2004 11:27 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some more Sat night code help please. Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Sun Nov 28 00:01:06 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 27 Nov 2004 22:01:06 -0800 Subject: [AccessD] Some more Sat night code help please. In-Reply-To: <20041128054749.23698.qmail@web81502.mail.yahoo.com> Message-ID: <002201c4d50f$a9eddba0$6501a8c0@delllaptop> I wish that was my biggest problem. No worries. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Saturday, November 27, 2004 9:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some more Sat night code help please. Sorry about the duplicate email. I didn't realize the first email left my outbox. Jeremy Toves wrote: A space is not null. If Me.cboEmpName.Value = " " Then Try this. If IsNull(Me.cboEmpName.Value) Then Joe Hecht wrote: Private Sub cmdEmpDetails_Click() ' Comments : Open Employee form mased on cboEmpName ' Parameters: - ' Modified : ' ' -------------------------------------------------- On Error GoTo Err_cmdEmpDatails_Click Dim strStDocName As String Dim strStLinkCriteria As String Dim lngRetval As Long Dim frmCurrentForm As Form There is a combo box with a button to open another form on this form. The combo box value is null when this form opens. If the user clicks the button I want to open the message box and say try again. The message box code is not fireing. Would someone see what is not working here? If Me.cboEmpName.Value = " " Then 'If combobox value is null open message box lngRetval = MsgBox( _ "Please pitck an employee from the list or click on the close buttob", _ vbOKOnly + vbCritical + vbSystemModal + vbDefaultButton1, _ "Please pick Employee") Select Case lngRetval Case vbOK Set frmCurrentForm = Screen.ActiveForm ' Keep selection box form as active form End Select Else strStDocName = "Employee" strStLinkCriteria = "[EmpID]=" & "'" & Me![cboEmpName] & "'" DoCmd.OpenForm strStDocName, , , strStLinkCriteria End If Exit_cmdEmpDatails_Click: Exit Sub Err_cmdEmpDatails_Click: MsgBox Err.Description Resume Exit_cmdEmpDatails_Click End Sub JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Sun Nov 28 08:54:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 28 Nov 2004 14:54:44 -0000 Subject: [AccessD] Re: Selecting Languages - English or Spanish orSom ething In-Reply-To: <41A9E7EC.13652.635CC48@lexacorp.com.pg> Message-ID: <000701c4d55a$33f629c0$b274d0d5@minster33c3r25> Wow sounds fantastic Stuart. My son was in the Whitsundays a month or so back. Said how beautiful it was. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: 28 November 2004 05:00 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: Selecting Languages - English or > Spanish orSom ething > > > On 25 Nov 2004 at 8:50, Roz Clarke wrote: > > > Anything that's spelt differently is no problem for text > translation, > > only aural translation. So I don't think those *would* work! > > > > Right (correct) and right (hand) and free (at liberty) and free > > (gratuit) are the only ones I can think of just now. > > > > Take a look at the number of meanings for the words "set" and > "run" in any > good dictionary :-) > > As an aside, most difficult words to translate: > http://news.bbc.co.uk/2/hi/africa/3830521.stm > > (I'm coming in on this a bit late. I've just spent the last > week sailing > from the Whitsundays in Australia to PNG and I'm just > catching up on a > weeks worth of email. A great experience. My first time to > sail a square > rigger - a 53ft brigantine.) > > > > > > -- > Stuart > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd at shaw.ca Sun Nov 28 09:55:42 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 28 Nov 2004 07:55:42 -0800 Subject: OT [AccessD] Re: Selecting Languages - English or Spanish or Something In-Reply-To: <41A9E7EC.13652.635CC48@lexacorp.com.pg> Message-ID: Sounds awesome Stuart. Probably the most difficult word in the English language to translate is the word 'set'. This word has literally dozens of meanings. In one encyclopedia, the number of means attributed to this simple word fills 8 pages. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, November 27, 2004 9:00 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: Selecting Languages - English or Spanish or Something On 25 Nov 2004 at 8:50, Roz Clarke wrote: > Anything that's spelt differently is no problem for text translation, only > aural translation. So I don't think those *would* work! > > Right (correct) and right (hand) and free (at liberty) and free (gratuit) > are the only ones I can think of just now. > Take a look at the number of meanings for the words "set" and "run" in any good dictionary :-) As an aside, most difficult words to translate: http://news.bbc.co.uk/2/hi/africa/3830521.stm (I'm coming in on this a bit late. I've just spent the last week sailing from the Whitsundays in Australia to PNG and I'm just catching up on a weeks worth of email. A great experience. My first time to sail a square rigger - a 53ft brigantine.) -- Stuart -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Nov 28 12:29:50 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 28 Nov 2004 13:29:50 -0500 Subject: [AccessD] code problem In-Reply-To: <000701c4d504$675844c0$6501a8c0@delllaptop> References: <000701c4d504$675844c0$6501a8c0@delllaptop> Message-ID: <41AA191E.1040309@rogers.com> Here is a function that might prove more useful. It is mostly compatible but has the advantage that you can use it everywhere, rather than tying it to one specific combo-box. It lets you specify the form to pop up, in case the add-to-list is complext (i.e. needs several required fields). Public Function aaNotInList _ ( _ NewData As String, _ Response As Integer, _ strForm As String, _ strTerm As String _ ) 'This function works just like the standard NotInList Sub, 'but adds two new parameters so you can specify the name of the 'form to pop up, and the generic name of the object (i.e., customer, agent, etc.) 'Note: this function requires the IsLoaded function, for which there are many sources. Dim mbrResponse As VbMsgBoxResult Dim strMsg As String strMsg = NewData & _ " is not on file. " & _ "Add a new " & strTerm & "?" mbrResponse = MsgBox(strMsg, _ vbYesNo + vbQuestion, "Unknown " & strTerm) Select Case mbrResponse Case vbYes DoCmd.OpenForm strForm, _ DataMode:=acFormAdd, _ WIndowMode:=acDialog, _ OpenArgs:=NewData ' Stop here and wait until the form ' goes away. If IsLoaded(strForm) Then Response = acDataErrAdded Debug.Print "Closing " & strForm DoCmd.Close acForm, strForm Else Response = acDataErrContinue End If Case vbNo Response = acDataErrContinue End Select End Function Arthur Joe Hecht wrote: >I am copying and will attribute the following code from KG et al ADH > > > >Private Sub cboEmpName_NotInList(newdata As String, Response As Integer) > >Dim strMsg As String > >Dim rst As Recordset > >Dim db As Database > > > > > > strMsg = "'"& NewData &"'" is not in the list. " > > strMsg = strMsg & "Would you like to add them?" > > > >Does any one know why the first strMsg line is evaluating to to red ? > > > >Thanks > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004 From jmhla at earthlink.net Sun Nov 28 18:23:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sun, 28 Nov 2004 16:23:45 -0800 Subject: [AccessD] access data to word forms Message-ID: <000001c4d5a9$b33e2440$6501a8c0@delllaptop> I am building an application at home that will go to the client's server and two or three workstations. I am passing some data from Access to Word. The way I know how to do this, through Words data merge wizard hard codes the path as I understand things. Is there a way to have the path change to the server when I install this or will I need to rebuild the links? Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From tom at rbbs.net.au Sun Nov 28 21:45:05 2004 From: tom at rbbs.net.au (Tom Keatley) Date: Mon, 29 Nov 2004 11:45:05 +0800 Subject: [AccessD] Divide A Table into 4 equal parts and append to a second table References: <000001c4d5a9$b33e2440$6501a8c0@delllaptop> Message-ID: <005701c4d5c5$d46c08a0$0300a8c0@TomDownload> Hi all... I have built a function that seems to achieve my aims although I feel it looks a little clunky... Its purpose is to reduce the data of 4 records in a table (NUMBERS) to a single record in another table (Table4up) with a view to using that data on a report 4 up. Can anyone suggest a better/more efficient way to achieve my aims? The code as is will not handle less than 9 records and I realise its not finished as there is no error checking or setting variables to NOTHING but wanted to get the groups feeling about the efficiency. This code will form the heart of a new project I am working on and I want it to be the best way possible to do it..... Function REnder4UPnew() Dim Db As Database, Rs As Recordset Dim RsAdd As Recordset Dim Nos As String Dim NoRecs As Long Dim FourUp As String Dim Counter As Integer Dim DElQry As String Dim ModNo As Integer DElQry = "DELETE Table4UP.* FROM Table4UP;" DoCmd.RunSQL DElQry Nos = "SELECT NUMBERS.* FROM NUMBERS ORDER BY NUMBERS.IDNO;" FourUp = "SELECT Table4UP.* FROM Table4UP;" Set Db = CurrentDb Set Rs = Db.OpenRecordset(Nos) Set RsAdd = Db.OpenRecordset(FourUp) With Rs .MoveFirst .MoveLast NoRecs = .RecordCount ModNo = NoRecs Mod 4 Select Case ModNo Case 0 NoRecs = Int(.RecordCount / 4) Case 1 NoRecs = Int(.RecordCount / 4) + 1 Case 2 NoRecs = Int(.RecordCount / 4) + 1 Case 3 NoRecs = Int(.RecordCount / 4) + 1 End Select Counter = 0 ....MoveFirst While Not .EOF Or .BOF Counter = Counter + 1 Select Case Counter Case 1 To NoRecs RsAdd.AddNew RsAdd!sequence = Counter RsAdd!Pos1 = ![idno] RsAdd.Update Case (NoRecs + 1) To (NoRecs * 2) If Counter = (NoRecs + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos2 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos2 = ![idno] RsAdd.Update RsAdd.MoveNext End If Case ((NoRecs * 2) + 1) To (NoRecs * 3) If Counter = ((NoRecs * 2) + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos3 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos3 = ![idno] RsAdd.Update RsAdd.MoveNext End If Case ((NoRecs * 3) + 1) To (NoRecs * 4) If Counter = ((NoRecs * 3) + 1) Then RsAdd.MoveFirst RsAdd.Edit RsAdd!Pos4 = ![idno] RsAdd.Update RsAdd.MoveNext Else RsAdd.Edit RsAdd!Pos4 = ![idno] RsAdd.Update RsAdd.MoveNext End If End Select ....MoveNext Wend End With Select Case ModNo Case 1 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9998 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9999 RsAdd.Update Case 2 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update RsAdd.MoveNext RsAdd.Edit RsAdd!Pos4 = 9998 RsAdd.Update Case 3 RsAdd.Edit RsAdd!Pos4 = 9997 RsAdd.Update End Select End Function Thanks In Anticipation Tom Keatley From accessd667 at yahoo.com Mon Nov 29 02:04:40 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 29 Nov 2004 00:04:40 -0800 (PST) Subject: [AccessD] Search for linked documents....IN TABLES.... In-Reply-To: <20041124141534.33810.qmail@web61105.mail.yahoo.com> Message-ID: <20041129080440.63373.qmail@web61106.mail.yahoo.com> absolutely knowbody any idea?? I'm really stuck on this one!! thnx in advance. Regards, SD S D wrote: Can anybody please help me with this one? Tips/links/articles any thing will do!! Regrds, sd S D wrote: Hi group, it seemed that the users where not talking about linked tables but about linked documents in a table! So I've got a table, this table has an oledb field in it. I found out how to search for this. However, I now need to figure out how I can do the following: 1 - check if file is linked 2 - what type of file is linked (Word, Excel, etc) 3 - what is the version of the matching officeprogram (eg Word 97, Excell 2002) 4 - what is the location of the file 5 - what are the create, last modified, last opened date Did anybody ever do something like this? Does anybody know if there is some sort of object model that I can use for this eg like in Excell: Application => Workbook => worksheet, etc? Does anybody know to any tips on how to figure this out?! Thnx in advance! Sander S D wrote: Have fun....haha..ha...hmmm I think we've got different ideas about fun Thnx for the, once again, great response. Sander Gustav Brock wrote: Hi Sander This is doable but not straight forward. First, linked "documents" are treated as ISAM databases and tables. For text and xBase and Paradox files, the directory is the "database" while for Excel and Html the file is the database. Linked MAPI tables are even more excotic so I will leave them for this. Linked ODBC tables are complete different as they are identified by their connect strings. Second, tables may be linked with other names than their true names. This a query which will return all non-deleted links: SELECT DISTINCT RTrim([Database]) AS DbsPath, MSysObjects.Connect, Hex(GetTableType([Flags])) AS TableType, MSysObjects.ForeignName, GetTrueForeignName(GetTableType([Flags]),[ForeignName]) AS TrueForeignName, MSysObjects.Name AS LinkedName FROM MSysObjects WHERE (IsTablePresent([Flags])=True) AND (MSysObjects.Type=4 Or MSysObjects.Type=6); It uses these supporting functions: Declarations. ' Table types known. ' ' ODBC connection. Private Const clngTableTypeNone As Long = &H0 ' Note: MS MSDE/SQL Server has some higher bits set as well. Private Const clngTableTypeOdbc As Long = &H100000 ' Jet file attached by UNC name. Private Const clngTableTypeJetUnc As Long = &H200000 ' Jet file attached by mapped drive letter. Private Const clngTableTypeJetDrive As Long = &H400000 Private Const clngTableTypeParadox As Long = &H700000 Private Const clngTableTypeDbase As Long = &H800000 Private Const clngTableTypeText As Long = &HA00000 Private Const clngTableTypeExcel As Long = &HB00000 Private Const clngTableTypeOutlook As Long = &HD00000 Private Const clngTableTypeHtml As Long = &HE00000 Public Function GetTrueForeignName( _ ByVal lngTableType As Long, _ ByVal strForeignName As String) _ As String ' Returns true foreign name for those ISAM table types ' where this is stored as an alias. ' Foreign names for other table types are not altered. ' ' Example Excel: ' Alias for worksheet: Sheet1$ ' True name: Sheet1 ' Example Paradox: ' Alias for table name: Pdoxfile#db ' True name: Pdoxfile.db ' ' 2004-05-10. Cactus Data ApS, CPH. Const cstrSepDbase As String = "#" Const cstrSepParadox As String = "#" Const cstrSepText As String = "#" Const cstrSepExcel As String = "$" Const cstrRplExcel As String = vbNullString Dim strTrueName As String Dim lngPos As Long Select Case lngTableType Case clngTableTypeParadox lngPos = InStr(strForeignName, cstrSepParadox) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeDbase lngPos = InStr(strForeignName, cstrSepDbase) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case clngTableTypeExcel If Right(strForeignName, 1) = cstrSepExcel Then ' Worksheet. Strip traling "$". strTrueName = Left(strForeignName, Len(strForeignName) - 1) Else ' Named Range. Leave as is. strTrueName = strForeignName End If Case clngTableTypeText lngPos = InStr(strForeignName, cstrSepText) If lngPos > 1 Then strTrueName = Left(strForeignName, lngPos - 1) Else strTrueName = strForeignName End If Case Else strTrueName = strForeignName End Select GetTrueForeignName = strTrueName End Function Public Function IsTablePresent( _ ByVal lngFlag As Long) _ As Boolean ' Returns True if a table is not flagged as deleted in MSysObjects. ' To be used in a query to extract currently attached tables. ' ' 2004-04-21. Cactus Data ApS. CPH. Const clngFlagDeleted As Long = &H1001 Dim booDeleted As Boolean booDeleted = lngFlag And clngFlagDeleted IsTablePresent = Not booDeleted End Function Public Function GetTableType( _ ByVal lngFlag As Long) _ As Long ' Returns the table type from lngFlag in MSysObjects by rounding it to ' &H100000 which strips all minor flags including the hidden flag (&H8) ' and all major flags - like &H20xxxxxx used by MS MSDE/SQL Server. ' To be used in a query to extract currently attached tables of a specific type. ' ' 2004-04-21. Cactus Data ApS. CPH. ' Flag mask. ' Const clngFlagMajor As Long = &HFF000000 ' Const clngFlagMinor As Long = &HFFFFF Const clngFlagMask As Long = &HFF0FFFFF Dim lngType As Long lngType = lngFlag And Not clngFlagMask GetTableType = lngType End Function Have fun! /gustav >>> accessd667 at yahoo.com 19-11-2004 14:57:55 >>> Hi group, I've got some code from the ADHB2K to search for linked tables. However, it is also possible to link documents...office documents that is. So I mean files with extions like: .xls; .txt; etc Q1: how can I search for these linked 'documents'? Q2: how can I pinpoint the xls files from none xls files? TIA Sander -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Meet the all-new My Yahoo! ? Try it today! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Discover all that?s new in My Yahoo! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Mon Nov 29 03:25:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Nov 2004 10:25:44 +0100 Subject: [AccessD] Divide A Table into 4 equal parts and append to a secondtable Message-ID: Hi Tom I guess you could pick every fourth record as base ID for a selection and create subselects to collect data from four records along these lines: SELECT DISTINCT ID\4 AS ID4, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 0) AS A, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 1) AS B, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 2) AS C, (Select T.FieldSome From tblYourTable As T Where T.ID\4 = tblYourTable.ID\4 And T.ID Mod 4 = 3) AS D FROM tblYourTable; This assumes that your IDs are truly sequential (no "holes"). If this is not the case, things get a little more complicated. Also, first ID should be 0. If not, you will need to move around the sequence of A to D and their modulos - from 0,1,2,3 to 1,2,3,0 if the first ID is 1. /gustav From Erwin.Craps at ithelps.be Mon Nov 29 05:49:17 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 29 Nov 2004 12:49:17 +0100 Subject: [AccessD] Not all queries present when mailmerge from word. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5596@stekelbes.ithelps.local> Hi Since Access version 2000 I notice that not all queries are visible in the merge window. Apparently all queries that are based on more then one table or have somewhat complex structure are missing. Why is this, and how can I see the afterall.... Greetz 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 Gustav at cactus.dk Mon Nov 29 06:01:53 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Nov 2004 13:01:53 +0100 Subject: [AccessD] Execute and transaction Message-ID: Hi all If you use the Execute method to run action queries, pay attention to this from the on-line help: In earlier versions of the Microsoft Jet Database Engine, SQL statements were automatically embedded in implicit transactions. If part of a statement executed with dbFailOnError failed, the entire statement would be rolled back. To improve performance, these implicit transactions were removed starting with version 3.5. If you are updating older DAO code, be sure to consider using explicit transactions around Execute statements. For best performance in a Microsoft Jet workspace, especially in a multiuser environment, nest the Execute method inside a transaction. Use the BeginTrans method on the current Workspace object, then use the Execute method, and complete the transaction by using the CommitTrans method on the Workspace. This saves changes on disk and frees any locks placed while the query is running. I just had to debug a case where an extremely simple update query (one table, less than 2000 records, updating an indexed field) during testing ran "just like that" while run from code took more than one minute. Wrapping it in a transaction cut the duration to one second: wks.BeginTrans qdf.Execute dbFailOnError qdf.Close wks.CommitTrans /gustav From GregSmith at starband.net Mon Nov 29 08:03:12 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 29 Nov 2004 08:03:12 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <001501c4d506$1368c590$6501a8c0@delllaptop> References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> Message-ID: <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Joe: Yes, it would. However, I'm not the one installing this program on customer's computers...our salespeople are (not Access savy, if you catch my drift...) and I'm not going to try and explain it to them. I don't have that much time left on Earth...;) But, if it does the runtime install, nobody has access to that part of Acess, so they can't be changed anyway. I haven't tried Marty's suggestions yet...his email is on my home computer which uses Starband (no choice...) for my internet...and this weekend one of their satellites (the one I use) went dark. There are a whole bunch of us without internet access (I'm at work right now..). Starband says it cannot be repaired (the satellite is 22,500 miles out...too far for a stepladder...) and will have to do something else. So please bear with me if I don't always respond right away. Thanks! Greg Smith gregsmith at starband.net > Would turning off warnings in tools options help on this? > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, November 22, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... > > > Get their network guy to change the following registry settings of the > following key, should help you change the security level of the macro in > Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access . . . From Jdemarco at hudsonhealthplan.org Mon Nov 29 08:44:22 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 29 Nov 2004 09:44:22 -0500 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BA0@TTNEXCHCL2.hshhp.com> Eric, I did a quick test of a little sample db and had the same result trying to match a category name using LIKE, BUT I noticed that if I change the query to use the Category ID rather than LIKE on the name column I returned results in the XML file. FWIW Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Eric Goetz Sent: Saturday, November 27, 2004 9:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] ExportXML fails calulated where in acc2003? Hi, I thought I'd incorporate a little XML in transferring data from an Access 2003 mdb to an Excel spreadsheet. The Excel XML List looks like a useful feature. The trouble is, I can't get Access to output the XML. I'm running Access 2003 as part of a complete install of Office 2003 Enterprise Edition with SP1. I've tried this on two machines: XPProSP1a and XPProSP2. I've wasted my day isolating a test case, and here it is... Test A, make sure you can do a simple export to XML. 1. Take a fresh copy of Northwind.mdb 2. Right click on the query called "Alphabetical List of Products" and select "Export..." 3. Use the combobox "Save as type:" to select XML. 4. Click "Export" 5. Take the defaults on the subsequent dialogs. 6. Open the ".xml" file that you just created. 7. WOW! You now know how to use XML! Test B, actually try to use XML to do some work. 1. Open the query "Alphabetical List of Products" in design view. 2. Add criteria to "CatagoryName" of Like "S*", which gives SQL of: SELECT Products.*, Categories.CategoryName FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID WHERE (((Categories.CategoryName) Like "S*") AND (Products.Discontinued)=No)); 3. Run the query to see that you get the 12 products from the Seafood category. 4. Save the query. 5. Perform steps 2 through 6 from Test A. 6. I get a nearly empty file. HUH? I thought I knew how to use XML. How about you? It seems that just about any calculation in the WHERE clause kills ExportXML. I've tried it from VBA as well as the manual method employed above. Thanks, Eric -- _______________________________________________ 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 EricGoetz at egisystems.com Mon Nov 29 10:48:43 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Mon, 29 Nov 2004 08:48:43 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EBB@servera22.doma.ops> Jim, Thank you so much for giving this a try. At least I know I'm not loosing my mind... I think. I'll take you suggestion and keep experimenting with work-arounds. Thanks, Eric -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Monday, November 29, 2004 6:44 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ExportXML fails calulated where in acc2003? Eric, I did a quick test of a little sample db and had the same result trying to match a category name using LIKE, BUT I noticed that if I change the query to use the Category ID rather than LIKE on the name column I returned results in the XML file. FWIW Jim DeMarco From dw-murphy at cox.net Mon Nov 29 12:51:34 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 29 Nov 2004 10:51:34 -0800 Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Message-ID: <001901c4d644$76027810$8500a8c0@murphyf3vdfepi> Take a look at Helen Feddema's Access Achron site, http://www.helenfeddema.com/access.htm, article 119 discussess 2003 security. There was also an article in one of the Access magazines, the Access Advisor I think, a few months ago on how to deal with 2003 security issues in designing your application. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Smith Sent: Monday, November 29, 2004 6:03 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] A2003 Macro Security in Runtime 'issue'... Joe: Yes, it would. However, I'm not the one installing this program on customer's computers...our salespeople are (not Access savy, if you catch my drift...) and I'm not going to try and explain it to them. I don't have that much time left on Earth...;) But, if it does the runtime install, nobody has access to that part of Acess, so they can't be changed anyway. I haven't tried Marty's suggestions yet...his email is on my home computer which uses Starband (no choice...) for my internet...and this weekend one of their satellites (the one I use) went dark. There are a whole bunch of us without internet access (I'm at work right now..). Starband says it cannot be repaired (the satellite is 22,500 miles out...too far for a stepladder...) and will have to do something else. So please bear with me if I don't always respond right away. Thanks! Greg Smith gregsmith at starband.net > Would turning off warnings in tools options help on this? > > JOE HECHT > LOS ANGELES CA > jmhla at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: Monday, November 22, 2004 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... > > > Get their network guy to change the following registry settings of the > following key, should help you change the security level of the macro > in Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access . . . -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From EricGoetz at egisystems.com Mon Nov 29 12:58:20 2004 From: EricGoetz at egisystems.com (Eric Goetz) Date: Mon, 29 Nov 2004 10:58:20 -0800 Subject: [AccessD] ExportXML fails calulated where in acc2003? Message-ID: <37E09725C7EB7B4F9E1ACA8F24EE55DB203EBF@servera22.doma.ops> Hi, And the answer is... ADO ANSI 92 wildcards vs MDB VBA wildcards. It turns out that ExportXML uses ADO, which uses ANSI 92 wildcards. My query uses wildcards that conform to VBA as explained in the Microsoft Access 2003 help topic: About ANSI SQL query mode (MDB). I had searched the MS knowledge base for "ExportXML" before posting this issue to AccessD. I didn't find anything relevant. If I would have searched the knowledge base with "Export XML", I would have found the following article. 823224 Access queries with a wildcard character do not export data to an XML document I've learned many things from this experience. I think I will be setting the "This database" checkbox in the "SQL Server Compatible Syntax (ANSI 92)" section of the "Tables/Queries" tab of the "Tools, Options..." dialog in Access for any new database work I do. That way the queries I write will be compatible across ADO, SQL server and the MDB. Has anyone else been turning on ANSI 92 compatibility for new work done in 2002-2003 file format MDBs? I think it will bring me one step closer to SQL Server, which is a good thing... I think.? Thanks, Eric From jmhla at earthlink.net Mon Nov 29 13:10:13 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:10:13 -0800 Subject: [AccessD] what is the right way to write this code Message-ID: <000c01c4d647$11cb8870$2002a8c0@delllaptop> If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net From bheid at appdevgrp.com Mon Nov 29 13:23:30 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 29 Nov 2004 14:23:30 -0500 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3ED46@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA89@ADGSERVER> I'd write it like: If not isnull(Me.JobTitleID) Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If OR If len("" & Me.JobTitleID)>0 Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If I would personally probably use the first one myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 13:33:03 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Nov 2004 19:33:03 -0000 Subject: [AccessD] what is the right way to write this code In-Reply-To: <000c01c4d647$11cb8870$2002a8c0@delllaptop> Message-ID: <008801c4d64a$3e5f8d70$b274d0d5@minster33c3r25> Hi Joe Try: If Not IsNull(Me.JobTitleID) Then Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) End If -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht > Sent: 29 November 2004 19:10 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] what is the right way to write this code > > > > > > > If Me.JobTitleID Is Null Then 'If row is > blank do nothing > > Else > > Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) > 'Display > job title > > > > End If > > > > Rowsource = > > SELECT [Job Title].JobTitleID, [Job Title].JobTitle > > FROM [Job Title] > > ORDER BY [Job Title].JobTitle; > > > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Jim.Hale at FleetPride.com Mon Nov 29 13:38:03 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 29 Nov 2004 13:38:03 -0600 Subject: [AccessD] what is the right way to write this code Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233725C@corp-es01.fleetpride.com> I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Monday, November 29, 2004 1:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jmhla at earthlink.net Mon Nov 29 13:38:23 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:38:23 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BBA89@ADGSERVER> Message-ID: <000001c4d64b$00d3ac60$2002a8c0@delllaptop> Thanks Bobby, Could not remember the proper way to test is not null. This list take a lot of the pain out of working alone. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, November 29, 2004 11:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I'd write it like: If not isnull(Me.JobTitleID) Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If OR If len("" & Me.JobTitleID)>0 Then 'If row is blank do nothing Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If I would personally probably use the first one myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] what is the right way to write this code If Me.JobTitleID Is Null Then 'If row is blank do nothing Else Me.cboJob_Title.Value = Me.cboJob_Title.Column(1) 'Display job title End If Rowsource = SELECT [Job Title].JobTitleID, [Job Title].JobTitle FROM [Job Title] ORDER BY [Job Title].JobTitle; JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Mon Nov 29 13:44:05 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:44:05 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB677233725C@corp-es01.fleetpride.com> Message-ID: <000a01c4d64b$cc9f4de0$2002a8c0@delllaptop> Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale From nkling at co.montgomery.ny.us Mon Nov 29 13:44:41 2004 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Mon, 29 Nov 2004 14:44:41 -0500 Subject: [AccessD] Looking for TWAIN ocx Message-ID: <30BC111F638EB54082001A7E7282FE41114CBC@elmo.co.montgomery.ny.us> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From martyconnelly at shaw.ca Mon Nov 29 13:48:26 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 Nov 2004 11:48:26 -0800 Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> Message-ID: <41AB7D0A.50800@shaw.ca> Here is a news site and forum on Starband's problem http://www.abcnewsabsat.com/home.html#ia7 Looks like a full replacement satellite won't be available until Feburary. Greg Smith wrote: >Joe: > >Yes, it would. However, I'm not the one installing this program on >customer's computers...our salespeople are (not Access savy, if you catch >my drift...) and I'm not going to try and explain it to them. I don't >have that much time left on Earth...;) > >But, if it does the runtime install, nobody has access to that part of >Acess, so they can't be changed anyway. > >I haven't tried Marty's suggestions yet...his email is on my home computer >which uses Starband (no choice...) for my internet...and this weekend one >of their satellites (the one I use) went dark. There are a whole bunch of >us without internet access (I'm at work right now..). Starband says it >cannot be repaired (the satellite is 22,500 miles out...too far for a >stepladder...) and will have to do something else. > >So please bear with me if I don't always respond right away. > >Thanks! > >Greg Smith >gregsmith at starband.net > > > >>Would turning off warnings in tools options help on this? >> >>JOE HECHT >>LOS ANGELES CA >> jmhla at earthlink.net >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Monday, November 22, 2004 1:40 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... >> >> >>Get their network guy to change the following registry settings of the >>following key, should help you change the security level of the macro in >> Access 2003. He should be able to change this globally across the >>network for each client PC, there is even a way to do this from Access >> >> >. >. >. > > > > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Mon Nov 29 13:50:45 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 11:50:45 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <000a01c4d64b$cc9f4de0$2002a8c0@delllaptop> Message-ID: <001101c4d64c$bac381d0$2002a8c0@delllaptop> What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Nov 29 13:54:49 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 29 Nov 2004 14:54:49 -0500 Subject: [AccessD] what is the right way to write this code In-Reply-To: <916187228923D311A6FE00A0CC3FAA30A3ED5D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BBA8D@ADGSERVER> You're quite welcome Joe. I know what you mean. I have gotten a lot of stuff off of here myself. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Thanks Bobby, Could not remember the proper way to test is not null. This list take a lot of the pain out of working alone. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From Jim.Hale at FleetPride.com Mon Nov 29 15:01:26 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 29 Nov 2004 15:01:26 -0600 Subject: [AccessD] what is the right way to write this code Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB6772337260@corp-es01.fleetpride.com> As in Franz Kakfa of "The Metamorphosis " fame, ie. "Man is an immense swamp. If he is seized with enthusiasm, the effect in the general picture is as though somewhere in a corner of this swamp a little frog had flopped into the green water." Jim Hale -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Monday, November 29, 2004 1:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code Is better than If job.painful = true Maybe JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 11:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code I know some jobs are a bore but this is a bit Kafkaesque don't you think? Or just a freudian slip perhaps? Jim Hale -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From GregSmith at starband.net Mon Nov 29 15:32:53 2004 From: GregSmith at starband.net (Greg Smith) Date: Mon, 29 Nov 2004 15:32:53 -0600 (CST) Subject: [AccessD] A2003 Macro Security in Runtime 'issue'... In-Reply-To: <41AB7D0A.50800@shaw.ca> References: <41A25CA4.806@shaw.ca> <001501c4d506$1368c590$6501a8c0@delllaptop> <1091.65.118.249.206.1101736992.squirrel@cetus.email.starband.net> <41AB7D0A.50800@shaw.ca> Message-ID: <2749.65.118.249.194.1101763973.squirrel@cetus.email.starband.net> Marty: Oh thanks. Kick me while I'm down. Looks like ONCE AGAIN I've moved from the 'cutting edge' to the more visited 'bleeding edge'... sigh. I've not heard anything from my installers, so who knows where they'll have to point it next. Oh heck with it. I'll just go play Halo 2 with my son on XBox...:) until they get it fixed. Now they can take their time... Greg Smith gregsmith at starband.net (when available...:P ) > Here is a news site and forum on Starband's problem > http://www.abcnewsabsat.com/home.html#ia7 > Looks like a full replacement satellite won't be available until > Feburary. > > Greg Smith wrote: > >>Joe: >> >>Yes, it would. However, I'm not the one installing this program on >> customer's computers...our salespeople are (not Access savy, if you >> catch my drift...) and I'm not going to try and explain it to them. I >> don't have that much time left on Earth...;) >> >>But, if it does the runtime install, nobody has access to that part of >> Acess, so they can't be changed anyway. >> >>I haven't tried Marty's suggestions yet...his email is on my home >> computer which uses Starband (no choice...) for my internet...and this >> weekend one of their satellites (the one I use) went dark. There are a >> whole bunch of us without internet access (I'm at work right now..). >> Starband says it cannot be repaired (the satellite is 22,500 miles >> out...too far for a stepladder...) and will have to do something else. >> >>So please bear with me if I don't always respond right away. >> >>Thanks! >> >>Greg Smith >>gregsmith at starband.net >> >> >> >>>Would turning off warnings in tools options help on this? >>> >>>JOE HECHT >>>LOS ANGELES CA >>> jmhla at earthlink.net >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> MartyConnelly Sent: Monday, November 22, 2004 1:40 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] A2003 Macro Security in Runtime "issue"... >>> >>> >>>Get their network guy to change the following registry settings of the >>> following key, should help you change the security level of the macro >>> in >>> Access 2003. He should be able to change this globally across the >>>network for each client PC, there is even a way to do this from Access >>> >>> >>. >>. >>. >> >> >> >> >> > > -- > 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 stuart at lexacorp.com.pg Mon Nov 29 17:58:24 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Nov 2004 09:58:24 +1000 Subject: [AccessD] Looking for TWAIN ocx In-Reply-To: <30BC111F638EB54082001A7E7282FE41114CBC@elmo.co.montgomery.ny.us> Message-ID: <41AC4440.23525.F6E667D@lexacorp.com.pg> On 29 Nov 2004 at 14:44, Neal Kling wrote: > I'm looking for a simple ocx/activex control/library to capture images from > a scanner in Access 2K. There are various available but the one's I've seen > seem to be built to take you to the moon and back. I don't need editing, > conversion etc. Just capture to the basic file types. Specifically TIF. > > I'll want to be able to specify path/name, file type, resolution. The whole > idea here is that I'm trying to remove a weak link, that being the users > saving with the wrong file names. Take a look at http://www.ciansoft.com/twaincontrolx/default.asp They have a free trial version available for download. -- Stuart From jmhla at earthlink.net Mon Nov 29 19:03:03 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 17:03:03 -0800 Subject: [AccessD] what is the right way to write this code In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB6772337260@corp-es01.fleetpride.com> Message-ID: <000501c4d678$5bf72680$6501a8c0@delllaptop> Clueless oh well JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Monday, November 29, 2004 1:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] what is the right way to write this code As in Franz Kakfa of "The Metamorphosis " fame, ie. "Man is an immense swamp. If he is seized with enthusiasm, the effect in the general picture is as though somewhere in a corner of this swamp a little frog had flopped into the green water." Jim Hale What is " Kafkaesque"? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:06:34 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:06:34 -0800 Subject: [AccessD] Calc line total if unit price is null X Posted Message-ID: <001501c4d681$3c8f8360$6501a8c0@delllaptop> Clients that like incomplete data make me nuts. Building A PODetails report. Client has prices for some things but not others. They fluctuate day to day. I can calculate quantity*price I need a workaround for 1. Line Total 2. PO Total When some or all prices on a Product are null. Sitting here tapping my receive key Thanks gang. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:10:05 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:10:05 -0800 Subject: [AccessD] Phone trees X posted Message-ID: <001a01c4d681$ba3b9a10$6501a8c0@delllaptop> Anybody here every wish they could call some one for help when they are stumped? I am in Los Angeles. Does any one in this area want to build a support for quick help calls? I am willing to organize A Los Angeles area tree. All numbers will be kept off list to foil bots and spammers. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 20:23:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 18:23:14 -0800 Subject: [AccessD] Right Click Issue Message-ID: <004f01c4d683$8efb7300$6501a8c0@delllaptop> I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Mon Nov 29 21:51:24 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 19:51:24 -0800 Subject: [AccessD] Count pages in a report Message-ID: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net From d.dick at uws.edu.au Mon Nov 29 21:59:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 14:59:36 +1100 Subject: [AccessD] Calc line total if unit price is null X Posted In-Reply-To: <001501c4d681$3c8f8360$6501a8c0@delllaptop> Message-ID: <200411300359.iAU3xux6011050@cooper.uws.edu.au> The math fails on a null usually. So just turn nulls to zeros - it is a valid way of doing it Convert a null to zero then the math will work Eg In a query some thing like xLINETOTAL:iif(isnull([UnitPrice]),0) Or nz([UnitPrice],0) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:07 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Calc line total if unit price is null X Posted Clients that like incomplete data make me nuts. Building A PODetails report. Client has prices for some things but not others. They fluctuate day to day. I can calculate quantity*price I need a workaround for 1. Line Total 2. PO Total When some or all prices on a Product are null. Sitting here tapping my receive key Thanks gang. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 22:04:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 15:04:39 +1100 Subject: [AccessD] Right Click Issue In-Reply-To: <004f01c4d683$8efb7300$6501a8c0@delllaptop> Message-ID: <200411300404.iAU44xx6015666@cooper.uws.edu.au> FOR the right click menu on a form to 'come back'..... In the Property Sheet of a form in design view Under the 'Other' tab Make sure there is a YES in the Shortcut Menu line RE the DB window not showing on a right click Hold down the shift key when opening the dB Go to Tools|Startup the tick and selet what you require Hope this helps -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Right Click Issue I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Nov 29 22:35:13 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 20:35:13 -0800 Subject: [AccessD] Count pages in a report In-Reply-To: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <000801c4d695$ff086d30$6501a8c0@delllaptop> Ok, I did some research To get count of pages in a report per FMS codetools: Public Property Get CountOfPages() As Integer ' Comments : Returns the count of Pages ' Source : Total Visual SourceBook 2002 ' CountOfPages = m_intCountPages End Property Record source for text box ="Page " & [Page] & " of " & [Pages] Textbox visible = false Pseuodo code If countofpages>1 then textbox1.visible = true where do I put property? How do I write Psudo code and where JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 7:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ 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 Nov 29 22:40:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 30 Nov 2004 15:40:42 +1100 Subject: [AccessD] Count pages in a report In-Reply-To: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <200411300441.iAU4f2x6017777@cooper.uws.edu.au> Hi Joe To refer to the Pages property in a macro or Visual Basic, the form or report must include a text box whose ControlSource property is set to an expression that uses Pages. For example, you can use the following expression as the ControlSource property setting for a text box in a page footer. Eg me. Try something like the following in the control source of a Text Box Control on the report Me.txtPageCounter = "Page " & Page & " of " & Pages Or try Me.txtNoOfPagesInThisReport = "There are " & Pages & " in this report" Or try Me.txtNoOfPagesInThisReport = Pages (Without testing) in VBA maybe something like if me.txtNoOfPagesInThisReport =1 then Msgbox "only 1 page" elseif me.txtNoOfPagesInThisReport >1 then Msgbox "more than one page - infact we have " & me.txtNoOfPagesInThisReport & " pages" End if (I havent tested that little bit though) To get the page you are on... Debug.Print Reports("rptMyReport").OnPage This next bit tells you if you are on an even or Odd page number Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer) On Error GoTo ErrorHandler dim intPageNo as integer intPageNo = Me.Page Debug.Print "Page: " & intPageNo If intPageNo Mod 2 = 0 Then 'The page number is even Else ' the page number is false End If -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 2:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Nov 29 22:43:44 2004 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 30 Nov 2004 14:43:44 +1000 Subject: [AccessD] Count pages in a report References: <000001c4d68f$dd24cb60$6501a8c0@delllaptop> Message-ID: <00df01c4d697$2cfab490$fa10a8c0@Albatross> Joe, Here's an example of how to put no page display on page 1 (contained in control Text28 which has it's control source : ="Page " & [Page] & " of " & [Pages] ) and page display on rest of report pages Regards Borge Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer) On Error GoTo ErrorHere If Me.Page = 1 Then Me.Text28.Visible = False Else Me.Text28.Visible = True End If ErrorExit: Exit Sub ErrorHere: Select Case Err.Number Case Is = 0 Resume Next 'case is = ?? 'msgbox "Enter some error text message here" Case Else MsgBox "Error in PageFooter_Format " & ": " & Err.Number & " " & Err.Description End Select Resume ErrorExit ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, November 30, 2004 1:51 PM Subject: [AccessD] Count pages in a report > Anyone know how to do it? > > Working on Purchase orders. If page count > 1 then I want to put page count > on all pages. If page count = 1 then no page count needs to be displayed. > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From Developer at UltraDNT.com Mon Nov 29 22:46:08 2004 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Mon, 29 Nov 2004 23:46:08 -0500 Subject: [AccessD] Count pages in a report In-Reply-To: <000801c4d695$ff086d30$6501a8c0@delllaptop> Message-ID: <000601c4d697$828a1630$0200a8c0@COA3> Why not in the text box record source, just put an IIF: =IIF([Pages]>1, [Pages], "") Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 11:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Count pages in a report Ok, I did some research To get count of pages in a report per FMS codetools: Public Property Get CountOfPages() As Integer ' Comments : Returns the count of Pages ' Source : Total Visual SourceBook 2002 ' CountOfPages = m_intCountPages End Property Record source for text box ="Page " & [Page] & " of " & [Pages] Textbox visible = false Pseuodo code If countofpages>1 then textbox1.visible = true where do I put property? How do I write Psudo code and where JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, November 29, 2004 7:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Count pages in a report Anyone know how to do it? Working on Purchase orders. If page count > 1 then I want to put page count on all pages. If page count = 1 then no page count needs to be displayed. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Mon Nov 29 23:02:56 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 29 Nov 2004 21:02:56 -0800 Subject: [AccessD] Right Click Issue In-Reply-To: <200411300404.iAU44xx6015666@cooper.uws.edu.au> Message-ID: <000901c4d699$de3dd0f0$6501a8c0@delllaptop> My hero for this crises. Thanks Darren JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, November 29, 2004 8:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Right Click Issue FOR the right click menu on a form to 'come back'..... In the Property Sheet of a form in design view Under the 'Other' tab Make sure there is a YES in the Shortcut Menu line RE the DB window not showing on a right click Hold down the shift key when opening the dB Go to Tools|Startup the tick and selet what you require Hope this helps -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 30 November 2004 1:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Right Click Issue I am working on an inherited database XP. A lot of the right click functionality seems to be gone. ( Like DB window< I would like to add object descriptions. Is there a setting I do not know about? JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Nov 30 05:18:11 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 12:18:11 +0100 Subject: [AccessD] Looking for TWAIN ocx Message-ID: Hi Neal! So your're back? Could it have been after 1? years? Anyway, have you checked these: http://www.vintasoft.com/vstwain-index.html For code examples and more: http://www.vintasoft.com/vstwain-faq.html Not free, though cheap. Also: http://www.pajant.co.uk By the way, doesn't Windows come with its own Twain support and ocx? If you wish to store the pictures in a database file, look here: http://www26.brinkster.com/alzowze/blobs.asp I haven't used any of these myself, just did some research recently for a client. If you find a solution, please share. This topic pops on from time to time. /gustav >>> nkling at co.montgomery.ny.us 29-11-2004 20:44:41 >>> I'm looking for a simple ocx/activex control/library to capture images from a scanner in Access 2K. There are various available but the one's I've seen seem to be built to take you to the moon and back. I don't need editing, conversion etc. Just capture to the basic file types. Specifically TIF. I'll want to be able to specify path/name, file type, resolution. The whole idea here is that I'm trying to remove a weak link, that being the users saving with the wrong file names. Does anyone have any recommendations? Thanks, Neal From cyx5 at cdc.gov Tue Nov 30 07:11:39 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 30 Nov 2004 08:11:39 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. From Jdemarco at hudsonhealthplan.org Tue Nov 30 07:37:16 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 08:37:16 -0500 Subject: [AccessD] Export to rtf truncates data Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB6@TTNEXCHCL2.hshhp.com> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application 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 Jdemarco at hudsonhealthplan.org Tue Nov 30 07:55:12 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 08:55:12 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB7@TTNEXCHCL2.hshhp.com> Karen, We have an app that we did not write (open source chronic disease registry) that uses A2K runtime as well. We've experienced similar issues on Win XP machines but unfortunately we have not found a fix. We too are thinking of upgrading to A2K3 runtime but our problem is the install app was not written here and I'm not sure how we'll deploy (the app uses MS Graph as well as Access). Anyway, our issue with the app prompting users is the installer running when the user picks a client name from a list box. I've seen this happen when opening Office apps but never from within a running application (and never on a list click!). Sorry I couldn't be of more help but I figured I'd let you know about our issue. We've since installed on numerous XP machines with only one other instance of the installer trying to run so we really haven't a clue as to what's triggering this. The first case does not have an Office install at all (further adding to the mystery), the second did (Office 2003 we're told but it was never confirmed). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ 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 Tue Nov 30 08:16:44 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 15:16:44 +0100 Subject: [AccessD] Export to rtf truncates data Message-ID: Hi Jim I've heard of a similar case; same symptoms but no solution. Have you turned off all autospelling, autocorrection etc. in Access XP? This can influence on margin settings (!) in reports. Could it be a font issue? What happens if you format the entire report with another font? It may not be an option but could bring an indication of where to look further. If you find out, please let us know. /gustav >>> Jdemarco at hudsonhealthplan.org 30-11-2004 14:37:16 >>> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application Development Hudson Health Plan From mikedorism at adelphia.net Tue Nov 30 08:23:35 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 30 Nov 2004 09:23:35 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: <000001c4d6e8$2fda02f0$0b08a845@hargrove.internal> We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Nov 30 08:25:02 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 30 Nov 2004 09:25:02 -0500 Subject: [AccessD] Export to rtf truncates data Message-ID: <08F823FD83787D4BA0B99CA580AD3C74486BB8@TTNEXCHCL2.hshhp.com> Thanks Gustav and my apologies for not stating that we're using A97 on Win2K. Will try both suggestions anyway and let you know how we make out. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, November 30, 2004 9:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Export to rtf truncates data Hi Jim I've heard of a similar case; same symptoms but no solution. Have you turned off all autospelling, autocorrection etc. in Access XP? This can influence on margin settings (!) in reports. Could it be a font issue? What happens if you format the entire report with another font? It may not be an option but could bring an indication of where to look further. If you find out, please let us know. /gustav >>> Jdemarco at hudsonhealthplan.org 30-11-2004 14:37:16 >>> List, We have a formatted Access report that is exported to rtf via standard menu command that is suddenly truncating field labels and field data in the generated rtf file. This problem began when the user got a new PC. We've checked the printer and printer drivers but the correct drivers seem to be installed for all but one printer (we've tried all the printers with the same result at any rate). A search of the archives did not yield a result so here I am asking you all. Has anyone seen this happen and is there a fix? TIA Jim DeMarco Director Application Development Hudson Health Plan -- _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 30 08:34:09 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 30 Nov 2004 09:34:09 -0500 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP Message-ID: My user is in California, so I will have to wait for him to get to work to find out. I will post back later. It is not just me.... Hmmm. Sagekey anyone? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, November 30, 2004 9:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Tue Nov 30 08:38:21 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 30 Nov 2004 15:38:21 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> Can anyone tell me why the form in this database flickers like hell when moving over the green zones or labels. This only in A2K3, same database same form, does not flicker in A2K2.... http://www.ithelps.be/temp/test.mdb greetz 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 Rich_Lavsa at pghcorning.com Tue Nov 30 09:09:34 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 10:09:34 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF1@goexchange2.pghcorning.com> Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich From oleg_123 at xuppa.com Tue Nov 30 10:52:27 2004 From: oleg_123 at xuppa.com (oleg_123 at xuppa.com) Date: Tue, 30 Nov 2004 11:52:27 -0500 (EST) Subject: [AccessD] Query Question Message-ID: <4394.212.42.94.42.1101833547.squirrel@imap1.xuppa.com> I need a query to have 4 extra columns, which would have values from column [book] is previous column is not 0. something like ExtraColumn:IF [clienthours] <> 0 Then [book] Thank you ----------------------------------------- You are entitled to Get 100% FREE perfume (S&H is FREE)! Click Here: http://azjmp.com/az/ch.php?f=176&i=657&sub=webmail From dwaters at usinternet.com Tue Nov 30 09:51:14 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 30 Nov 2004 09:51:14 -0600 Subject: [AccessD] Access Charts (Graphing) and resolution issue In-Reply-To: <15414158.1101827504822.JavaMail.root@sniper13.securence.com> Message-ID: <000601c4d6f4$6c136070$de1811d8@danwaters> Rich, A possibility is that the DPI setting on your screen resolution might be different between PC's. Go to Settings, push Advanced, and see what your setting is and your customer's setting. Changing DPI will affect the resolution of the entire screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Tuesday, November 30, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Charts (Graphing) and resolution issue Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at isharp.co.uk Tue Nov 30 10:00:12 2004 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Tue, 30 Nov 2004 16:00:12 -0000 Subject: [AccessD] Query Question In-Reply-To: <668C5C868606C641857281147C46893657B807@primary.orridge.co.uk> Message-ID: <668C5C868606C641857281147C4689365525D1@primary.orridge.co.uk> What about ExtraColumn1: IIF([ClientHours]<>0, [BOOK]) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of oleg_123 at xuppa.com Sent: 30 November 2004 16:52 To: accessd at databaseadvisors.com Subject: [AccessD] Query Question I need a query to have 4 extra columns, which would have values from column [book] is previous column is not 0. something like ExtraColumn:IF [clienthours] <> 0 Then [book] Thank you ----------------------------------------- You are entitled to Get 100% FREE perfume (S&H is FREE)! Click Here: http://azjmp.com/az/ch.php?f=176&i=657&sub=webmail -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Tue Nov 30 10:16:25 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 11:16:25 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF2@goexchange2.pghcorning.com> I had checked that before and all are set to (small fonts) Normal Size or 96 DPI depending on the Windows version XP or 2000. Either way all are set to 96DPI. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, November 30, 2004 10:51 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue Rich, A possibility is that the DPI setting on your screen resolution might be different between PC's. Go to Settings, push Advanced, and see what your setting is and your customer's setting. Changing DPI will affect the resolution of the entire screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Tuesday, November 30, 2004 9:10 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Charts (Graphing) and resolution issue Hello all, I have an issue. I spent hours getting my graphs to work properly on these reports. I seem to have hit yet another snag with the chart object. I have my resolution set to 1024 x 768 and my users are usually on 800 x 600. I take into account when developing to make sure the screens fit on a 800 x 600 screen. I didn't do testing on my graphs using a standard users computer because I didn't even think this would be an issue. What is happening is that the graphs are getting chopped off at the Right hand side on a users machine where they are not on my machine. Just to test my theory that it had to be the resolution I reduced mine, and it happened to me as well. I am certain it has to do with the resolution set on each machine. Has anyone ever encountered this, or have any idea on how to overcome it. The graphs are somewhat complex in the fashion that I have to populate temp tables because the aggregation will not happen all at once in a query, and most of the graphs are trend style over a month or even yearly so they are usually wide. Thanks in advance Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dw-murphy at cox.net Tue Nov 30 11:09:53 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 30 Nov 2004 09:09:53 -0800 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: <000f01c4d6ff$68902c20$8500a8c0@murphyf3vdfepi> Karen, We have a product developed in Access XP that we sell. I built the install with Wise installer 9 and the associated Sagekey scripts. We have had not experienced the problem you describe. I have tested our installation package on as many operating systems and different configurations of these systems as I can come up with and all seem to work. I'd recommend going the Wise/Install shield Sagekey route. Another benefit of using the Sagekey scripts is that you can download from Sagekey all the ancillary files required for installation in one package. When you use the Developer deployment wizard it pulls the files from your computer and you may run into versioning problems. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 5:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Nov 30 11:19:40 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 09:19:40 -0800 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP References: Message-ID: <41ACABAC.5090201@shaw.ca> Well you could develop your Access 2000 runtime on an XP box. Going to Access 2003 will give you a few more headaches as you will have to handle Access Macro Security with 2003 yourself. The Access 2003 sagekey scripts have a way of disabling macro security for a specific install without using a certificate store. For one site I had someone write a quick and dirty VB program to startup up access with 2003 macro security disabled.. With SageKey you are essentially paying for the testing of their product with a myriad of OS and Access permutations. You could buy just the MSI installer scripts from SageKey if you have a vanilla install, ie. no multiple OCX's to be installed as well. Cheaper than buying Install Shield or Wise with the scripts. Ask sagekey about it. Why don't you phone SageKey (888) 248-0055 Tollfree They are in British Columbia and speak Canadian ;). Nicholson, Karen wrote: >My user is in California, so I will have to wait for him to get to work >to find out. I will post back later. It is not just me.... Hmmm. >Sagekey anyone? > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris >Manning >Sent: Tuesday, November 30, 2004 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on >Windows XP > > >We had similar problems doing installs on Windows XP machines. What >files >is it prompting them to get so I can check my notes? > >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 Nicholson, >Karen >Sent: Tuesday, November 30, 2004 8:12 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on >Windows >XP > > >This runtime issue is starting to drive me a little bonkers. I am >running >Windows 2000 Professional, using the Access 2000 runtime deployment >wizard >and now my manufacturers who just have plain old XP are not able to run >my >runtime installation package. The package is prompting the user to get >files that it does not have and then their system boots. > >Has anyone had this problem? What are my options? Will upgrading to >Access >2003/Deployment Wizard solve the XP problem when I am developing on >Windows >2000 Professional? > >About SageKey - is this product good enough to take all the operating >systems and Access versions off the table and just run a clean >installation >of the runtime package? > >SO: A) - Upgrade to Access 2003/Deployment Wizard > B) - Do the SageKey > >Opinions, please? > >Thanks. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Nov 30 11:41:00 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 09:41:00 -0800 Subject: [AccessD] Access Charts (Graphing) and resolution issue References: <2A261FF9D5EBCA46940C11688CE872EE03AAF2@goexchange2.pghcorning.com> Message-ID: <41ACB0AC.7060705@shaw.ca> Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might be >different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are usually >on 800 x 600. I take into account when developing to make sure the >screens fit on a 800 x 600 screen. I didn't do testing on my graphs >using a standard users computer because I didn't even think this would >be an issue. What is happening is that the graphs are getting chopped >off at the Right hand side on a users machine where they are not on my >machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at once >in a query, and most of the graphs are trend style over a month or even >yearly so they are usually wide. > >Thanks in advance >Rich > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Tue Nov 30 11:49:22 2004 From: john at winhaven.net (John Bartow) Date: Tue, 30 Nov 2004 11:49:22 -0600 Subject: [AccessD] Windows 2000 Professional, Access 2000 Runtime on Windows XP In-Reply-To: Message-ID: Karen, I have used Wise/Sagekey for 5 years now for various applications to many end users. These apps have been installed on W95/98/ME/NT/2K/XP and server versions. I have never had a problem with conflicts or with installations. These products are expensive, and do require some involved learning on how to operate Wise Installation System beyond its wizard interfaces (SageKey scripts are just that - text scripts to be used as add-in/starting points for the installed products), I have been totally satisfied with these purchases and IMO they have paid for themselves. If for no other reason than a lack of the frustration I see from others who haven't made the purchases. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 30, 2004 8:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP My user is in California, so I will have to wait for him to get to work to find out. I will post back later. It is not just me.... Hmmm. Sagekey anyone? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, November 30, 2004 9:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP We had similar problems doing installs on Windows XP machines. What files is it prompting them to get so I can check my notes? 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 Nicholson, Karen Sent: Tuesday, November 30, 2004 8:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Windows 2000 Professional,Access 2000 Runtime on Windows XP This runtime issue is starting to drive me a little bonkers. I am running Windows 2000 Professional, using the Access 2000 runtime deployment wizard and now my manufacturers who just have plain old XP are not able to run my runtime installation package. The package is prompting the user to get files that it does not have and then their system boots. Has anyone had this problem? What are my options? Will upgrading to Access 2003/Deployment Wizard solve the XP problem when I am developing on Windows 2000 Professional? About SageKey - is this product good enough to take all the operating systems and Access versions off the table and just run a clean installation of the runtime package? SO: A) - Upgrade to Access 2003/Deployment Wizard B) - Do the SageKey Opinions, please? Thanks. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 dispec.com Tue Nov 30 12:09:47 2004 From: JColby at dispec.com (Colby, John) Date: Tue, 30 Nov 2004 13:09:47 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF9AC@DISABILITYINS01> >due to WYSIWYG (haven't heard that term in a while) WYSIWYWPNGSDBAMAI: What You See Is What You Will Probably NEVER Get So Don't Bother Asking Me About It. John W. Colby The DIS Database Guy -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, November 30, 2004 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Charts (Graphing) and resolution issue Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might be >different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are usually >on 800 x 600. I take into account when developing to make sure the >screens fit on a 800 x 600 screen. I didn't do testing on my graphs >using a standard users computer because I didn't even think this would >be an issue. What is happening is that the graphs are getting chopped >off at the Right hand side on a users machine where they are not on my >machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at once >in a query, and most of the graphs are trend style over a month or even >yearly so they are usually wide. > >Thanks in advance >Rich > > -- 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 Rich_Lavsa at pghcorning.com Tue Nov 30 12:19:04 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Tue, 30 Nov 2004 13:19:04 -0500 Subject: [AccessD] Access Charts (Graphing) and resolution issue Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03AAF4@goexchange2.pghcorning.com> That sounds exactly like what is happening to me. I suppose there is no way to "trick" the application that it is actually set at 1024x768 at report generation time is there? Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 30, 2004 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Charts (Graphing) and resolution issue Here is one explanation, maybe hunt around their site for further info. They do a lot of Access printer work. There is a bit of a bug in Graph, that runs something like this: If you create a graph in a report where your screen resolution is say 1024x768 and then move that report with a graph in it to a machine running 800x600, the internal OLE object for the Graph, doesn't resize and your graph appears to run out side of the OLE control. I'm assuming that's what you are seeing when trying to play with the zoom etc. The only way to work around this is to design your graphs at a modest resolution and make sure that the internal chart area inside the graph object itself (not the ole control on the page, but the chart area) has sufficient room around it so that if the graph container "shrinks" on page resolution, that its still fully visible. This impacts printing (i.e. the visible resolution of the screen), due to WYSIWYG (haven't heard that term in a while) interplay between the screen resolutions and printer output in drawing. -- Steve Arbaugh ACG Soft http://ourworld.compuserve.com/homepages/attac-cg Lavsa, Rich wrote: >I had checked that before and all are set to (small fonts) Normal Size >or 96 DPI depending on the Windows version XP or 2000. Either way all >are set to 96DPI. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, November 30, 2004 10:51 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Access Charts (Graphing) and resolution issue > > >Rich, > >A possibility is that the DPI setting on your screen resolution might >be different between PC's. Go to Settings, push Advanced, and see what >your setting is and your customer's setting. Changing DPI will affect >the resolution of the entire screen. > >Dan Waters >ProMation Systems > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich >Sent: Tuesday, November 30, 2004 9:10 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Access Charts (Graphing) and resolution issue > >Hello all, > >I have an issue. I spent hours getting my graphs to work properly on >these reports. I seem to have hit yet another snag with the chart >object. I have my resolution set to 1024 x 768 and my users are >usually on 800 x 600. I take into account when developing to make sure >the screens fit on a 800 x 600 screen. I didn't do testing on my >graphs using a standard users computer because I didn't even think this >would be an issue. What is happening is that the graphs are getting >chopped off at the Right hand side on a users machine where they are >not on my machine. > >Just to test my theory that it had to be the resolution I reduced mine, >and it happened to me as well. I am certain it has to do with the >resolution set on each machine. > >Has anyone ever encountered this, or have any idea on how to overcome >it. The graphs are somewhat complex in the fashion that I have to >populate temp tables because the aggregation will not happen all at >once in a query, and most of the graphs are trend style over a month or >even yearly so they are usually wide. > >Thanks in advance >Rich > > -- 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 Tue Nov 30 12:26:05 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 30 Nov 2004 10:26:05 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> Message-ID: <41ACBB3D.6040209@shaw.ca> You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html Erwin Craps - IT Helps wrote: >Can anyone tell me why the form in this database flickers like hell when >moving over the green zones or labels. >This only in A2K3, same database same form, does not flicker in A2K2.... > >http://www.ithelps.be/temp/test.mdb > >greetz > > > >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 > > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Tue Nov 30 13:38:16 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 30 Nov 2004 20:38:16 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B55A1@stekelbes.ithelps.local> I don't believe this :-) And this is known since february and no fix yet???? Pff A2K3 is disapointing me. I did'nt programmed a lot in the last 6 months or so, and I recently started again in A2K3. I crash about three to four times a day my Access 2K3 while developing, sometimes just when clicking on a combobox to open it. I'm back to A2K2 now... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, November 30, 2004 7:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form flickers like hell in A2K3 You ain't gonna believe this but if running WinXP change your theme by right-clicking your Windows XP desktop, choosing Properties, and setting the Theme to "Windows Classic". If you cannot solve it by deselecting Use Windows Themed Controls on Forms under Tools | Options | Forms/Reports in Access 2003 The flickering or flutter goes away on my machine using Win XP Theme Classic Access 2003 and by deselecting above option The flickering is triggered by unattached labels on the page of a tab control. The workaround is to convert these labels to text boxes. For non english speakers I found this by searching on Screen Flutter rather than Flicker. For full explanation. and code to correct all forms if above tools option method doesn't work http://members.iinet.net.au/~allenbrowne/ser-46.html Erwin Craps - IT Helps wrote: >Can anyone tell me why the form in this database flickers like hell >when moving over the green zones or labels. >This only in A2K3, same database same form, does not flicker in A2K2.... > >http://www.ithelps.be/temp/test.mdb > >greetz > > > >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 > > > > -- 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 Nov 30 13:46:38 2004 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Nov 2004 20:46:38 +0100 Subject: [AccessD] Form flickers like hell in A2K3 Message-ID: Hi Marty > You ain't gonna believe this .. So true! /gustav From rl_stewart at highstream.net Tue Nov 30 15:09:01 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 30 Nov 2004 15:09:01 -0600 Subject: [AccessD] Re: Right Click Issue In-Reply-To: <200411301312.iAUDCtL17396@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041130150825.04b68008@pop3.highstream.net> Check under startup options and see if the allow shortcut menus is checked. At 07:12 AM 11/30/2004 -0600, you wrote: >Date: Mon, 29 Nov 2004 18:23:14 -0800 >From: "Joe Hecht" >Subject: [AccessD] Right Click Issue >To: "'Access Developers discussion and problem solving'" > >Message-ID: <004f01c4d683$8efb7300$6501a8c0 at delllaptop> >Content-Type: text/plain; charset="US-ASCII" > >I am working on an inherited database XP. A lot of the right click >functionality seems to be gone. ( Like DB window< I would like to add object >descriptions. > > > >Is there a setting I do not know about? > > > >JOE HECHT > >LOS ANGELES CA > >jmhla at earthlink.net From mcaro at bigpond.net.au Tue Nov 30 15:23:46 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Wed, 1 Dec 2004 08:23:46 +1100 Subject: [AccessD] Push merge list to Word Message-ID: <000c01c4d722$e0556810$0100000a@MITSERVER> Hi Folks I am looking for some code to send the results of an Access query to Word to be used as a merge list for envelops and/or letters. My search to date has provided various push/pull bits an pieces with varying complexity but I'm still looking for a simple push method that will launch Word with the data source in place. Any pointers would be appreciated Martin From jmhla at earthlink.net Tue Nov 30 15:30:17 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 13:30:17 -0800 Subject: [AccessD] Push merge list to Word In-Reply-To: <000c01c4d722$e0556810$0100000a@MITSERVER> Message-ID: <200411302130.iAULUDL16603@databaseadvisors.com> Depending on how automated you need you can start wood and use there merge tool. If you need more let me know. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Tuesday, November 30, 2004 1:24 PM To: Access Developers discussion and problem solving Subject: [AccessD] Push merge list to Word Hi Folks I am looking for some code to send the results of an Access query to Word to be used as a merge list for envelops and/or letters. My search to date has provided various push/pull bits an pieces with varying complexity but I'm still looking for a simple push method that will launch Word with the data source in place. Any pointers would be appreciated Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Nov 30 16:24:37 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 14:24:37 -0800 Subject: [AccessD] Count pages in a report In-Reply-To: <000601c4d697$828a1630$0200a8c0@COA3> Message-ID: <005f01c4d72b$63e93550$6501a8c0@delllaptop> Thanks All I read all suggestion but putting it in an IIF seems to be what I wanted. With Steve's help I came up with the expression below which seems to work. =IIF([Pages]>1,"Page " & [Page] & " of " & [Pages], "") JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin (Developer at UltraDNT) Sent: Monday, November 29, 2004 8:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Count pages in a report Why not in the text box record source, just put an IIF: =IIF([Pages]>1, [Pages], "") Steve From mcaro at bigpond.net.au Tue Nov 30 17:42:17 2004 From: mcaro at bigpond.net.au (Martin Caro) Date: Wed, 1 Dec 2004 10:42:17 +1100 Subject: [AccessD] Push merge list to Word References: <200411302130.iAULUDL16603@databaseadvisors.com> Message-ID: <005101c4d736$3a4c9600$0100000a@MITSERVER> I need to automate the process from within Access ie Word is launched, the data source is set and the user just needs to hit merge in Word. I need to supply buttons in Access for envelops or letter.... I'm aware I'll need to setup a form letter/s in Word. Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 01, 2004 8:30 AM Subject: RE: [AccessD] Push merge list to Word > Depending on how automated you need you can start wood and use there merge > tool. > > If you need more let me know. > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Tuesday, November 30, 2004 1:24 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Push merge list to Word > > Hi Folks > > I am looking for some code to send the results of an Access query to Word to > be used as a merge list for envelops and/or letters. > > My search to date has provided various push/pull bits an pieces with varying > complexity but I'm still looking for a simple push method that will launch > Word with the data source in place. > > Any pointers would be appreciated > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Tue Nov 30 17:46:22 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 15:46:22 -0800 Subject: [AccessD] Which Report Event to use. and related code XP Message-ID: <006c01c4d736$cf3465e0$6501a8c0@delllaptop> I want to set some code If is null [txtnotes] then [txtnotes].visible = false I am thinking that should go into the on format event, but I do not see that event. This text box is part of a sub report so it needs to check this for each row in the report. Thanks JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jmhla at earthlink.net Tue Nov 30 17:53:00 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 15:53:00 -0800 Subject: [AccessD] Push merge list to Word In-Reply-To: <005101c4d736$3a4c9600$0100000a@MITSERVER> Message-ID: <007201c4d737$bc6ba1c0$6501a8c0@delllaptop> Helen Feddema Access book has something on that. I have not read that chapter yet. Check the group archives. This topic has been discussed before. I need to figure out too, for the project I have been harassing the list this week about. JOE HECHT LOS ANGELES CA jmhla at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro Sent: Tuesday, November 30, 2004 3:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Push merge list to Word I need to automate the process from within Access ie Word is launched, the data source is set and the user just needs to hit merge in Word. I need to supply buttons in Access for envelops or letter.... I'm aware I'll need to setup a form letter/s in Word. Martin ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 01, 2004 8:30 AM Subject: RE: [AccessD] Push merge list to Word > Depending on how automated you need you can start wood and use there merge > tool. > > If you need more let me know. > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Caro > Sent: Tuesday, November 30, 2004 1:24 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Push merge list to Word > > Hi Folks > > I am looking for some code to send the results of an Access query to Word to > be used as a merge list for envelops and/or letters. > > My search to date has provided various push/pull bits an pieces with varying > complexity but I'm still looking for a simple push method that will launch > Word with the data source in place. > > Any pointers would be appreciated > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jmhla at earthlink.net Tue Nov 30 20:08:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 30 Nov 2004 18:08:41 -0800 Subject: [AccessD] Convert text to number X posted Message-ID: <000001c4d74a$b1093960$6501a8c0@delllaptop> Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net From jwcolby at colbyconsulting.com Tue Nov 30 20:35:57 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 30 Nov 2004 21:35:57 -0500 Subject: [AccessD] Convert text to number X posted In-Reply-To: <000001c4d74a$b1093960$6501a8c0@delllaptop> Message-ID: <001d01c4d74e$81574e60$e8dafea9@ColbyM6805> I would copy the table STRUCTURE to a new table, same name, with a 1 on the end. Now the new table is empty. Change the PK to an autonumber. Build an append query to append the data from old to new. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, November 30, 2004 9:09 PM To: 'Access Developers discussion and problem solving'; 'ACCESS-L' Subject: [AccessD] Convert text to number X posted Finally found big trap in inherited database. Foreign Key Vendor ID is set as text. I need to convert it to long number. If I change data type to number Access threatens to delete all fields. I cannot find anything in help on Cnum. All thoughts apreciated JOE HECHT LOS ANGELES CA jmhla at earthlink.net -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Tue Nov 30 20:41:11 2004 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 1 Dec 2004 12:41:11 +1000 Subject: [AccessD] Convert text to number X posted References: <000001c4d74a$b1093960$6501a8c0@delllaptop> Message-ID: <00bc01c4d74f$384969a0$fa10a8c0@Albatross> Hi Joe, This is what I would do: Create new Number Field in table Update the NumberField with Key Vendor ID converted to number Run a comparison check of Key Vendor ID and text value of Number Field Do necessary clean up on records where not identical Make the Number Field the new FK Tick it Done! Regards Borge Hansen ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" ; "'ACCESS-L'" Sent: Wednesday, December 01, 2004 12:08 PM Subject: [AccessD] Convert text to number X posted > Finally found big trap in inherited database. > > > > Foreign Key Vendor ID is set as text. I need to convert it to long number. > > > > If I change data type to number Access threatens to delete all fields. > > > > I cannot find anything in help on Cnum. > > > > All thoughts apreciated > > > > JOE HECHT > > LOS ANGELES CA > > jmhla at earthlink.net > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com --- Outgoing mail is certified Virus Free by AVG Anti Virus System. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date: 19/11/2004 From greggs at msn.com Tue Nov 30 22:38:15 2004 From: greggs at msn.com (Gregg) Date: Tue, 30 Nov 2004 22:38:15 -0600 Subject: [AccessD] To open or not to open References: <000001c4d74a$b1093960$6501a8c0@delllaptop> <00bc01c4d74f$384969a0$fa10a8c0@Albatross> Message-ID: I have a home made security system that addresses user rights based upon their function. My method is to call a module that is on the on open of the form that will set the Add, Edit, and Delete rights based upon the user's function and the rights assigned to that function. My problem is... if a user does not have Add rights and there is no data for the criteria specified... I get an error "can't go to the specified record ". I understand the form is being opened without data to go to and therefore will try to go to a new record and naturally will error because we have set ADD to no. My question is what method can I use to avoid all that? My wish is to issue a message that there is no data to view and return without opening the fom From bchacc at san.rr.com Tue Nov 30 23:07:15 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 30 Nov 2004 21:07:15 -0800 Subject: [AccessD] Form flickers like hell in A2K3 References: <46B976F2B698FF46A4FE7636509B22DF1B55A0@stekelbes.ithelps.local> <41ACBB3D.6040209@shaw.ca> Message-ID: <027f01c4d763$9fca35a0$6501a8c0@HAL9002> Marty: Thanks for the heads up on this. Just came across this today at two customer sites where they put my A2K app on an A2K3 machine and the flash was really annoying. I tried a couple of things but no soap. I'll walk them through this tomorrow . Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, November 30, 2004 10:26 AM Subject: Re: [AccessD] Form flickers like hell in A2K3 > You ain't gonna believe this but if running WinXP change your theme by > right-clicking your Windows XP desktop, choosing Properties, and setting > the Theme to "Windows Classic". > If you cannot solve it by deselecting Use Windows Themed Controls on > Forms under Tools | Options | Forms/Reports in Access 2003 > The flickering or flutter goes away on my machine using Win XP Theme > Classic Access 2003 and by deselecting above option > The flickering is triggered by unattached labels on the page of a tab > control. The workaround is to convert these labels to text boxes. > For non english speakers I found this by searching on Screen Flutter > rather than Flicker. > > For full explanation. and code to correct all forms if above tools option > method doesn't work > http://members.iinet.net.au/~allenbrowne/ser-46.html > > Erwin Craps - IT Helps wrote: > >>Can anyone tell me why the form in this database flickers like hell when >>moving over the green zones or labels. >>This only in A2K3, same database same form, does not flicker in A2K2.... >> http://www.ithelps.be/temp/test.mdb >> greetz >> >> >>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 >> >> > > -- > 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 accessd at shaw.ca Tue Nov 30 23:32:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 30 Nov 2004 21:32:55 -0800 Subject: [AccessD] To open or not to open In-Reply-To: Message-ID: Hi Gregg: Maybe try something as simple as catching the error code and managing it yourself. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, November 30, 2004 8:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] To open or not to open I have a home made security system that addresses user rights based upon their function. My method is to call a module that is on the on open of the form that will set the Add, Edit, and Delete rights based upon the user's function and the rights assigned to that function. My problem is... if a user does not have Add rights and there is no data for the criteria specified... I get an error "can't go to the specified record ". I understand the form is being opened without data to go to and therefore will try to go to a new record and naturally will error because we have set ADD to no. My question is what method can I use to avoid all that? My wish is to issue a message that there is no data to view and return without opening the fom -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com